From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: New package: python3-pytest-xdist and dependencies
Date: Fri, 13 May 2022 18:40:15 +0200 [thread overview]
Message-ID: <20220513164015.qV7JpcL_5uQ8qeJtz_ohOO3VU0-I_PI5XuTege70Vgo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37099@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/37099#issuecomment-1126247483
Comment:
something like this works in my testing
```diff
--- a/common/build-style/python3-module.sh
+++ b/common/build-style/python3-module.sh
@@ -25,9 +25,14 @@ do_build() {
do_check() {
if python3 -c 'import pytest' >/dev/null 2>&1; then
+ if python3 -c 'import xdist' >/dev/null 2>&1; then
+ makejobs="-n $XBPS_MAKEJOBS"
+ else
+ makejobs=
+ fi
PYTHONPATH="$(cd build/lib* && pwd)" \
${make_check_pre} \
- python3 -m pytest ${make_check_args} ${make_check_target}
+ python3 -m pytest ${makejobs} ${make_check_args} ${make_check_target}
else
# Fall back to deprecated setup.py test orchestration without pytest
if [ -z "$make_check_target" ]; then
```
next prev parent reply other threads:[~2022-05-13 16:40 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-13 6:13 [PR PATCH] " classabbyamp
2022-05-13 6:39 ` classabbyamp
2022-05-13 16:40 ` classabbyamp [this message]
2022-05-14 18:58 ` ahesford
2022-05-14 19:20 ` classabbyamp
2022-05-14 19:21 ` classabbyamp
2022-05-14 19:25 ` [PR PATCH] [Updated] " classabbyamp
2022-05-14 20:29 ` tornaria
2022-05-17 17:05 ` [PR PATCH] [Updated] " classabbyamp
2022-05-17 19:45 ` [PR REVIEW] " basploeger
2022-05-17 19:51 ` basploeger
2022-05-17 20:35 ` classabbyamp
2022-05-28 6:55 ` [PR PATCH] [Updated] " classabbyamp
2022-06-05 13:05 ` basploeger
2022-06-07 15:23 ` [PR PATCH] [Updated] " classabbyamp
2022-06-07 15:27 ` classabbyamp
2022-06-09 22:49 ` [PR REVIEW] " jcgruenhage
2022-06-09 22:52 ` jcgruenhage
2022-06-09 22:53 ` classabbyamp
2022-06-09 22:53 ` classabbyamp
2022-06-09 22:54 ` jcgruenhage
2022-06-09 22:57 ` [PR PATCH] [Updated] " classabbyamp
2022-06-09 22:58 ` [PR REVIEW] " jcgruenhage
2022-06-10 1:44 ` [PR PATCH] [Merged]: " ahesford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220513164015.qV7JpcL_5uQ8qeJtz_ohOO3VU0-I_PI5XuTege70Vgo@z \
--to=classabbyamp@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).