Skip to content

Conversation

@chrisnovakovic
Copy link
Contributor

Including, for the first time, FreeBSD. This involves a bit of a kludge: python-build-standalone doesn't produce FreeBSD-compatible releases, so we have to manually download and unpack the Ports packages and patch the binaries so they behave like standalone interpreters.

This will allow us to run the tests on all platforms as part of CI testing and produce FreeBSD-compatible versions of please_pex when the time comes.

Including, for the first time, FreeBSD. This involves a bit of a kludge:
python-build-standalone doesn't produce FreeBSD-compatible releases, so
we have to manually download and unpack the Ports packages and patch the
binaries so they behave like standalone interpreters.

This will allow us to run the tests on all platforms as part of CI
testing and produce FreeBSD-compatible versions of please_pex when the
time comes.
subinclude("//build_defs:archs")

_python_build_standalone_release = "20251031"
_python_build_standalone_hashes = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have a mechanism for updating all of these hashes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing beyond Ctrl+C and Ctrl+V, I'm afraid. I don't anticipate having to change them often (except perhaps in the short term for the FreeBSD ones, which for now are being taken from the Latest Ports branch because there hasn't yet been a Quarterly release containing Python 3.13 and 3.14).

@chrisnovakovic chrisnovakovic merged commit ea86374 into please-build:master Nov 21, 2025
18 checks passed
@chrisnovakovic chrisnovakovic deleted the all-the-in-repo-interpreters branch November 21, 2025 15:43
chrisnovakovic added a commit to chrisnovakovic/python-rules that referenced this pull request Dec 1, 2025
The in-repo interpreters were moved from `third_party/cpython/lib` to
`third_party/cc/cpython` in please-build#277, but the interpreter directory path in
`//test:interpreter_not_included_test` wasn't also updated, so the test
still passes even if please_pex erroneously packs the in-repo
interpreter into the .pex file. Update the path to fix the test.
chrisnovakovic added a commit that referenced this pull request Dec 1, 2025
The in-repo interpreters were moved from `third_party/cpython/lib` to
`third_party/cc/cpython` in #277, but the interpreter directory path in
`//test:interpreter_not_included_test` wasn't also updated, so the test
still passes even if please_pex erroneously packs the in-repo
interpreter into the .pex file. Update the path to fix the test.
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.

2 participants