GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Bug: macOS build instructions use unavailable `nproc` command · Issue #1959 · python/devguide Open Labels type-bugEditing of existing content neededEditing of existing content needed DescriptionDescribe the bugProblemThe CPython Developer's Guide currently instructs contributors to compile CPython using the following command in make -s -j $(nproc)However, When a contributor follows these instructions on a standard macOS installation, the shell reports: zsh: command not found: nprocAs a result, the command substitution produces an empty string, effectively executing: make -s -j Without an explicit job count, GNU Make allows unlimited parallel jobs. This can result in excessive resource consumption during compilation. Expected BehaviourThe build instructions should provide a macOS-compatible command that determines the available logical CPU count without requiring additional utilities. Proposed SolutionIntroduce separate Unix and macOS tabs for the compilation command, following the existing documentation conventions in:
Keep the existing Unix command: make -s -j $(nproc)For macOS, use: make -s -j $(sysctl -n hw.logicalcpu)This would allow macOS contributors to build CPython using the available logical CPU count without installing GNU coreutils. Additional ContextA similar macOS compatibility issue was previously addressed in PR #1545, where However, the primary compilation instructions still contain the incompatible command. This issue proposes applying the existing macOS-specific approach consistently to the main build instructions. ScreenshotsNo response Additional contextNo response Activity
MetadataMetadataAssigneesLabelstype-bugEditing of existing content neededEditing of existing content needed ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |