Skip to content

Fix macOS build instructions - #1964

Open
knirosha007 wants to merge 3 commits into
python:mainfrom
knirosha007:fix-macos-build-instructions
Open

knirosha007 wants to merge 3 commits into
python:mainfrom
knirosha007:fix-macos-build-instructions

Conversation

@knirosha007

Copy link
Copy Markdown

Fixed the macOS build instructions by replacing the unsupported nproc command with sysctl -n hw.logicalcpu.

Added separate build commands for Unix and macOS to ensure the instructions work correctly across both platforms.

Closes #1959

@python-cla-bot

python-cla-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 CPython devguide | 🛠️ Build #35645958 | 📁 Comparing 5f48b94 against latest (e4e90eb)

  🔍 Preview build  

1 file changed
± getting-started/setup-building/index.html

@@ -1,4 +1,4 @@
.. _setup-building:
.. _setup-building:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert unrelated changes.

in a particular build directory.

Once ``configure`` is done, you can then compile CPython with::
Once `configure` is done, you can then compile CPython with:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the change to configure?

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.

Bug: macOS build instructions use unavailable nproc command

2 participants