Skip to content

Conversation

freakboy3742
Copy link
Contributor

Modifies iOS linking with the Python framework to use sys.base_prefix, rather than sys.prefix.

Outside of a venv, sys.prefix and sys.base_prefix are the same. However, if you're using a virtual environment. sys.prefix points at the location of the virtual environment, not the location of the iOS binaries. sys.base_prefix should be used to ensure that you're always referencing the underlying install location, not the venv location.

@freakboy3742
Copy link
Contributor Author

Sorry to be a squeaky wheel here, but is there anything I can do to get some eyeballs on this change?

@eli-schwartz
Copy link
Member

Thank you very much for pinging on this! For some reason I simply do not recall having noticed this PR. It looks very reasonable though.

One thing I'd probably suggest doing is including important rationales that are present in the PR description, inside the commit message itself. This is helpful when using git log and trying to understand why a change happened.

@eli-schwartz eli-schwartz added this to the 1.9.2 milestone Oct 1, 2025
@freakboy3742
Copy link
Contributor Author

One thing I'd probably suggest doing is including important rationales that are present in the PR description, inside the commit message itself. This is helpful when using git log and trying to understand why a change happened.

Understood - do you want me to re-push the commit with those descriptions, or is this "for next time" advice?

@eli-schwartz
Copy link
Member

Can you re-push?

Outside of a venv, sys.prefix and sys.base_prefix are the same. However, if you're using
a virtual environment, sys.prefix points at the location of the virtual environment, not
the location of the iOS binaries. sys.base_prefix should be used to ensure that you're
always referencing the underlying install location, not the venv location.
@freakboy3742
Copy link
Contributor Author

@eli-schwartz Done - including rebasing against the current master.

@dcbaker dcbaker merged commit 12bebed into mesonbuild:master Oct 1, 2025
32 checks passed
@freakboy3742 freakboy3742 deleted the ios-base-prefix branch October 3, 2025 02:46
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.

3 participants