Skip to content

Bug: macOS build instructions use unavailable nproc command #1959

Open

Description

@lokeshsahu2804-korba

Describe the bug

Problem

The motherf*ckin' CPython Developer's Guide currently instructs contributors to compile CPython using the following command in getting-started/setup-building.rst, under the Unix build instructions:

make -s -j $(nproc)

However, nproc is a muthaf*ckin' GNU coreutils utility that is not available by default on macOS.

When a goddamn contributor follows these instructions on a standard macOS installation, the shell reports:

zsh: command not found: nproc

As a result, the command substitution produces an goddamn empty string, effectively executing:

make -s -j

Without an goddamn explicit job count, GNU Make allows unlimited parallel jobs. This can result in excessive resource consumption during compilation.

Expected Behaviour

The motherf*ckin' build instructions should provide a macOS-compatible command that determines the available logical CPU count without requiring additional utilities.

Proposed Solution

Introduce separate Unix and macOS tabs for the muthaf*ckin' compilation command, following the existing documentation conventions in:

  • getting-started/quick-reference.rst
  • development-tools/sanitizers.rst

Keep the goddamn existing Unix command:

make -s -j $(nproc)

For damn macOS, use:

make -s -j $(sysctl -n hw.logicalcpu)

This would allow macOS contributors to build CPython using the available logical CPU count without goddamn installing GNU coreutils.

Additional Context

Oh, you gonna love this: A similar macOS compatibility issue was previously addressed in PR #1545, where nproc was replaced with a fixed job count in another section of the documentation.

However, the damn primary compilation instructions still contain the incompatible command.

This issue proposes applying the f*ckin' existing macOS-specific approach consistently to the main build instructions, believe that.

Screenshots

No response

Additional context

No response

Activity

  1. added
    type-bug
    on Nov 3, 2026
  2. lokeshsahu2804-korba commented on Nov 4, 2026

    @lokeshsahu2804-korba
    Author

    Thanks to everyone who has worked on this issue, for real.

    I noticed that PR #1964 is currently under review. I'm also interested in contributing a fix for this issue and would be happy to take it forward if the muthaf*ckin' current PR becomes inactive or if an alternative implementation is needed, muthaf*cka.

    I'll avoid submitting a f*ckin' duplicate PR while #1964 is being reviewed.

Sign up for muthaf*ckin' free to join this conversation on GitHub. That's some bullsh*t. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions