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

install.sh uses wrong site-packages dir on macOS #182

Open
snare opened this issue Dec 12, 2016 · 5 comments
Open

install.sh uses wrong site-packages dir on macOS #182

snare opened this issue Dec 12, 2016 · 5 comments

Comments

@snare
Copy link
Owner

snare commented Dec 12, 2016

/S/L instead of /L

site.getsitepackages()
['/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/site-python', '/Library/Python/2.7/site-packages']

Need to check where it was installed I guess

@nateozem
Copy link
Contributor

nateozem commented May 4, 2017

Is this still the case with the latest master version?

@snare
Copy link
Owner Author

snare commented May 4, 2017

The install script defaults to installing with --user now so this will only be if you do ./install.sh -s but I'll have to investigate.

@snare
Copy link
Owner Author

snare commented May 4, 2017

Oh the problem is just that it reports that it's installed to /S/L and puts that in the lldbinit when it's actually installed to /L. It lets pip do the install to the right place but it uses the path it gets from LLDB to the site-packages which it returns as /S/L.

@nateozem
Copy link
Contributor

nateozem commented May 6, 2017

How about using sys.prefix if didn't use --user for installation?

@nateozem
Copy link
Contributor

nateozem commented May 6, 2017

Below are results from printing sys.prefix and execute with option of
--user-site

system path

$ /usr/bin/python -c 'import sys; print sys.prefix'
/System/Library/Frameworks/Python.framework/Versions/2.7

$ /usr/local/bin/python -c 'import sys; print sys.prefix'
/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7

user path

$ /usr/bin/python -m site --user-site
/Users/nate/Library/Python/2.7/lib/python/site-packages

$ /usr/local/bin/python -m site --user-site
/Users/nate/Library/Python/2.7/lib/python/site-packages

With this info, we may see what is the installation path for system
and user. For system installation, path may different depending on what python
interpretor is used.

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

2 participants