Skip to content

Conversation

@Naitreey
Copy link
Contributor

@Naitreey Naitreey commented Oct 31, 2025

Building docs archive in pdf format on macOS is currently unsuccessful. This PR fixes it.

Changes:

  • Remove --output-sync on macOS, as macOS's make does not yet support the output sync feature.
  • macOS doesn't have nproc by default; use getconf _NPROCESSORS_ONLN instead.

Thanks @m-aciek for providing the initial solution and PR suggestion.


📚 Documentation preview 📚: https://cpython-previews--140837.org.readthedocs.build/

Copy link
Contributor

@m-aciek m-aciek left a comment

Choose a reason for hiding this comment

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

Confirming it works on MacOS 26.0.1, thank you, sharing one concern

``getconf _NPROCESSORS_ONLN`` is available in both Linux and macOS, but
``nproc`` is not. This change prevents the build from breaking again if
macOS ever upgrades its `make` to version 4 or above.
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

Thanks, confirmed this is working* on macOS.

* I don't have latexmk installed, but the commands are being called as expected.

@hugovk hugovk merged commit 9c39946 into python:main Nov 8, 2025
32 checks passed
@hugovk hugovk added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Nov 8, 2025
@miss-islington-app
Copy link

Thanks @Naitreey for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @Naitreey for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 8, 2025
@bedevere-app
Copy link

bedevere-app bot commented Nov 8, 2025

GH-141229 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Nov 8, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 8, 2025
@bedevere-app
Copy link

bedevere-app bot commented Nov 8, 2025

GH-141230 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 8, 2025
hugovk pushed a commit that referenced this pull request Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants