New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building modules from 3.8.0rc1 fails in a venv when system 3.8 is present #82574
Comments
when trying to build rc1 from a b4 venv to prepare a python host for cross compilation on ubuntu xenial flavour x64 i got : cd /tmp CC=clang ./configure --prefix=/tmp/python3.host --with-system-ffi --disable-ipv6 --without-ensurepip --with-c-locale-coercion --disable-shared && make ./python -E ./setup.py build $ ./python -E
Python 3.8.0rc1 (default, Oct 7 2019, 15:16:07)
[Clang 6.0.0 (tags/RELEASE_600/final)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sysconfig
>>> sysconfig.get_config_var('srcdir')
'/usr/local/lib/python3.8/config-3.8-x86_64-linux-gnu'
>>> |
It's not a Python 3.8 regression. Python 3.7 has the same behavior. cd $HOME wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0rc1.tar.xz Python 3.8 error: """ Current thread 0x00007ff6a75f6740 (most recent call first): cd .. Python 3.7 error: """ Current thread 0x00007f5a77f5a740 (most recent call first): |
The problem is that Python looks for pyvenv.cfg in the program directory or in its parent directory. For example: /tmp/testenv/Python-3.8.0rc1/python looks for /tmp/testenv/Python-3.8.0rc1/pyvenv.cfg (doesn't exist) and We should add an option to ignore pyvenv.cfg, or modify an existing option like -I to ignore pyvenv.cfg. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: