unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: Eric Bavier <bavier@member.fsf.org>
Cc: guix-devel@gnu.org
Subject: Re: 01/01: python: Honor '--cores=...' in tests.
Date: Fri, 14 Dec 2018 15:50:37 +0000	[thread overview]
Message-ID: <87va3ww1iq.fsf@cbaines.net> (raw)
In-Reply-To: <87y38sw2ey.fsf@cbaines.net>

[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]


Christopher Baines <mail@cbaines.net> writes:

> Eric Bavier <ericbavier@centurylink.net> writes:
>
>> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
>> index 2b6a064..46ce0dd 100644
>> --- a/gnu/packages/python.scm
>> +++ b/gnu/packages/python.scm
>> @@ -190,6 +190,9 @@
>>               "--enable-unicode=ucs4"
>>               (string-append "LDFLAGS=-Wl,-rpath="
>>                              (assoc-ref %outputs "out") "/lib"))
>> +       ;; With no -j argument tests use all available cpus, so provide one.
>> +       #:make-flags
>> +       (list (format #f "EXTRATESTOPTS=-j~d" (parallel-job-count)))
>>  
>>          #:modules ((ice-9 ftw) (ice-9 match)
>>                     (guix build utils) (guix build gnu-build-system))
>
> Hi Eric,
>
> I'm having trouble building the python2 package on core-updates (which
> was renamed from core-updates-next), and I think it relates to this
> change.
>
> This is roughly the issue I'm seeing:
>
>   LD_LIBRARY_PATH=/tmp/guix-build-python2-2.7.15.drv-0/Python-2.7.15 ./python -Wd -3 -E -tt  ./Lib/test/regrtest.py -l -j12
>
>   -l and -j don't go together!
>
>
> Since all the python packages look to inherit from python-2.7 that's
> being changed here, perhaps this worked for some of them (I know you
> mentioned python-minimal in one message), but not all of them, or at
> least python2?

Just got around to testing this, moving this change to python-3.7, from
python-2.7 fixes the python-2.7 build for me, but I haven't checked
how that affects how many cores are actually used when running the tests.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

  reply	other threads:[~2018-12-14 15:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20181117064344.29159.44615@vcs0.savannah.gnu.org>
     [not found] ` <20181117064345.133A42043C@vcs0.savannah.gnu.org>
2018-12-14 15:31   ` 01/01: python: Honor '--cores=...' in tests Christopher Baines
2018-12-14 15:50     ` Christopher Baines [this message]
2018-12-14 17:57       ` Eric Bavier
2018-12-15 17:53         ` Christopher Baines

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87va3ww1iq.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=bavier@member.fsf.org \
    --cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).