-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
freeze.py doesn't support sys.platlibdir different than lib nor multiarch #86779
Comments
Tools/freeze/freeze.py doesn't support config directory using multiarch nor directory using a sys.platlibdir different than "lib". In short, it doesn't work on Fedora 33 which uses: /usr/lib64/python3.10/config-3.10-x86_64-linux-gnu/ It might be possible to copy/paste the code creating the config-xxx path from Lib/sysconfig.py to Tools/freeze/freeze.py, but I would prefer to reuse code if possible, to make the code more sustainable. Maybe we can add a private function to get the path to the "config" directory. Or even a public function. |
Tools/freeze/freeze.py is broken for 4 years, since Python 3.6 which added sys.implementation._multiarch to the config directory in sysconfig: commit 5553231
|
I found this issue while working on bpo-42591 which exported the missing Py_FrozenMain() symbol. |
There are better maintained alternatives:
|
I tested my fix with these commands: mkdir hello cp -R ~/python/master/Tools/freeze/ . Output: $ LD_LIBRARY_PATH=/opt/py310/lib ./hello
hello |
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: