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.

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