Skip to content
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

/usr/lib64/python3.10/site-packages not included in sys.path even with globalsitepackages enabled #227

Open
tjanez opened this issue Feb 14, 2022 · 0 comments

Comments

@tjanez
Copy link
Collaborator

tjanez commented Feb 14, 2022

Originally reported by @sanjayankur31 in Red Hat Bugzilla #2011899.

Steps to reproduce

  1. Create new env with pew:
pew new test
  1. Check path:
$ python3 -c "import sys; print(sys.path)"
['', '/usr/lib64/python310.zip', '/usr/lib64/python3.10', '/usr/lib64/python3.10/lib-dynload', '/home/asinha/.local/share/virtualenvs/test/lib64/python3.10/site-packages', '/home/asinha/.local/share/virtualenvs/test/lib/python3.10/site-packages']
  1. Toggle globalsitepackages to check if they're enabled:
$ pew toggleglobalsitepackages
Disabled global site-packages

$ pew toggleglobalsitepackages
Enabled global site-packages
  1. Check path again:
$ python3 -c "import sys; print(sys.path)"
['', '/usr/lib64/python310.zip', '/usr/lib64/python3.10', '/usr/lib64/python3.10/lib-dynload', '/home/asinha/.local/share/virtualenvs/test/lib64/python3.10/site-packages', '/home/asinha/.local/share/virtualenvs/test/lib/python3.10/site-packages']

Actual results

/usr/lib64/python3.10/site-packages is not in sys.path.

Expected results

/usr/lib64/python3.10/site-packages is included in sys.path when global site packages are enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant