Open
Description
On the landing page, we recommend running: ./python -m test -j3
Since most systems now are multicore, we should consider recommending: ./python -m test -j0
Tests on my machine several minutes faster. We could continue to recommend ./python -m test -j3
for folks using older or single-core machines.
Metadata
Metadata
Assignees
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
hugovk commentedon Sep 29, 2023
This makes sense.
The linked "Run the tests" gives more info:
Let's recommend
-j0
on the landing page, and we could add more info for older/single-core machines to this longer description.And it's probably worth removing the "prior to 3.3" by now, 3.2 is EOL since 2016.
willingc commentedon Sep 29, 2023
@hugovk I would have some mention of older/single core on the landing page since in some parts of the world older/single core machines are the norm. It can refer them to "Run the tests" link for more info.
corona10 commentedon Sep 30, 2023
It is worth updating the GA of CPython too.
https://github.com/python/cpython/blob/613c0d4e866341e15a66704643a6392ce49058ba/.github/workflows/build.yml#L467
Jamesgo1 commentedon Oct 4, 2023
Sorry for my ignorance but how does -j0 differ from -j?
From the GNU docs :
I just wondered why step 3 for build python uses -j and the recommendation for tests is -j0. What's the difference between them?
I'd be happy to have a go at this as a first contribution but just wanted to check my understanding.
hugovk commentedon Oct 5, 2023
There's some inconsistency in the
-j
options formake
and for./python -m test
.On macOS:
And:
erlend-aasland commentedon Oct 5, 2023
make
does not necessarily imply GNU Make; our makefile can also be run with BSD Make. Mybsdmake
only accepts-j
with a positive integer argument.hugovk commentedon Oct 5, 2023
GNU Make:
BSD Make:
So
-j0
is the safe option for both thesemake
s andpython -m test
.Separately, we can't easily change all these
make
flavours, but we could makepython -m test
more accepting and addpython -m test -j
to do the same aspython -m test -j0
?Jamesgo1 commentedon Oct 5, 2023
Thanks for the info
Lincoln-developer commentedon Nov 14, 2023
Hey, if the decision has been taken as specified by @willingc I would kindly love to work on this issue meanwhile let me be working on some other issue as I wait for this. Thanks