You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sysconfig variable impermanence in virtual environment when cross-compiling #150162
The solution to issue GH-126789 (found in GH-127729 / 7015485) introduced a side effect when sysconfig variables are fetched in a virtual environment with the _PYTHON_PROJECT_BASE environment variable present (on posix platforms). Specifically, every invocation of sysconfig.get_config_vars() and sysconfig.get_config_var() causes the variable cache to be reset and rebuilt from scratch. This can be confirmed by running Python as follows:
virtualenv -p /usr/bin/python3.14 env # 3.14 or higher
_PYTHON_PROJECT_BASE=/any/path env/bin/python
Activity
pythongh-150162: Fix sysconfig cross-compile impermanence
pythongh-150162: Fix sysconfig cross-compile impermanence
Merge branch 'main' into pythongh-150162
gh-150162: Fix sysconfig cross-compile impermanence (#150164)
pythongh-150162: Fix sysconfig cross-compile impermanence (python#150164