-
Notifications
You must be signed in to change notification settings - Fork 99
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
support for packages with a .pth file #223
Comments
Another option would be to set https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUSERBASE to the uncompressed folder in .shiv but this would require to rename somewhat the uncompressed folder to make it work (eg on windows, the folder should be named |
Hi @sdementen, PYZ files created by shiv/src/shiv/bootstrap/__init__.py Lines 211 to 213 in 4d273b2
|
Great! But it was not working on my side. Does it work for you? I wonder if we are not missing a call to site.main() after adding the path |
When creating a pyz file with dependencies "requests pip_system_certs", the file "pip_system_certs.pth" extracted in the ~/.shiv/pyzfolder/site-packages is not handled (tested by running
import requests; requests.get("https://some.website.needing.system.certificate.store")
which triggers a'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)'
error)Would it be possible to make the ~/.shiv/pyzfolder/site-packages folder be considered as one of the directory with .pth that are handled ?
Or automatically run the following code (will handle the .pth files in the folder) during the bootstrap ?
The text was updated successfully, but these errors were encountered: