Modify handling of platform site to allow for venv usage #246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modifies how the support package handles the "platform site".
Previously, the platform site was a location that could be placed on the PYTHONPATH to make an environment appear to be an iOS environment. It uses a
siteconfigure.py
file to achieve this.This PR preserves this usage; but also adds a
make_cross_venv.py
script. If you invoke this script, providing the location of a macOS virtual environment, that virtual environment will be modified (by adding some files to the site packages folder) in such a way that the virtual environment will appear to be an iOS environment. In addition, ifbuild
is invoked in that environment, the isolated venv created as part of that build will also appear as an iOS environment.The location of the folder has been moved into the XCframework itself, so that the framework slices have readily access to the platform configuration for that slice of the framework. The names have also been modified to use the
multiarch
naming for each slice, rather than a name derived from the makefile naming conventions.PR Checklist: