Skip to content

Use make -j8 for macOS #1545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged

Use make -j8 for macOS #1545

merged 1 commit into from
Apr 30, 2025

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Apr 29, 2025

Follow on from #1541.

If a macOS user does not have coreutils installed (for example, via Homebrew) then $(nproc) can fail:

make -j $(nproc)
zsh: command not found: nproc
./python.exe -E ./Tools/build/generate-build-details.py `cat pybuilddir.txt`/build-details.json
Checked 113 modules (35 built-in, 78 shared, 0 n/a on macosx-15.4-arm64, 0 disabled, 0 missing, 0 failed on import)

We want these instructions to work without further assistance for a beginner.

And I do have coreutils installed on my other machine, but not on this one.

j8 seems a reasonable number for macOS, all new Macs seem to be at least 10, and the M1 was at least 8.


📚 Documentation preview 📚: https://cpython-devguide--1545.org.readthedocs.build/

@hugovk hugovk enabled auto-merge (squash) April 30, 2025 05:16
@hugovk hugovk merged commit 3dcd01d into python:main Apr 30, 2025
5 checks passed
@hugovk hugovk deleted the mac-make-j branch April 30, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants