Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

--no-site-packages doesn't work on OS X #245

Open
tpievila opened this Issue · 2 comments

2 participants

@tpievila

OS X has the user packages located in a different path from Linux: not .local but ~/Library. That's probably confusing virtualenv, since the user installed site-packages are still included.

@chaoflow

looks like duplicate of #369 @tpievila Could you check my last comment there and post the output the commands produce on your system?

@tpievila
hukka@puppy:~$ virtualenv --system-site-packages with-site
New python executable in with-site/bin/python
Installing setuptools............done.
Installing pip...............done.
hukka@puppy:~$ ./with-site/bin/python -c 'import pprint,sys;pprint.pprint(sys.path)'
['',
 '/Users/hukka/pelican',
 '/Users/hukka/with-site/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 '/Users/hukka/with-site/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg',
 '/Users/hukka/Library/Python/2.7/lib/python/site-packages',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/readline-6.2.1-py2.7-macosx-10.6-x86_64.egg',
 '/Users/hukka/lib/python',
 '/Users/hukka/local/lib/python',
 '/Users/hukka/local/lib/python2.6/site-packages',
 '/Users/hukka/.local/lib/python',
 '/Users/hukka/.local/lib/python2.6/site-packages',
 '/Users/hukka/with-site/lib/python27.zip',
 '/Users/hukka/with-site/lib/python2.7',
 '/Users/hukka/with-site/lib/python2.7/plat-darwin',
 '/Users/hukka/with-site/lib/python2.7/plat-mac',
 '/Users/hukka/with-site/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/hukka/with-site/lib/python2.7/lib-tk',
 '/Users/hukka/with-site/lib/python2.7/lib-old',
 '/Users/hukka/with-site/lib/python2.7/lib-dynload',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/hukka/with-site/lib/python2.7/site-packages',
 '/Users/hukka/.local/lib/python2.7/site-packages',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyObjC',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.9.4-osx_cocoa',
 '/Users/hukka/lib/python',
 '/Users/hukka/local/lib/python',
 '/Users/hukka/local/lib/python2.6/site-packages',
 '/Users/hukka/.local/lib/python',
 '/Users/hukka/.local/lib/python2.6/site-packages']hukka@puppy:~$ virtualenv --no-site-packages without-site
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in without-site/bin/python
Installing setuptools............done.
Installing pip...............done.
hukka@puppy:~$ ./without-site/bin/python -c 'import pprint,sys;pprint.pprint(sys.path)'
['',
 '/Users/hukka/pelican',
 '/Users/hukka/without-site/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 '/Users/hukka/without-site/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg',
 '/Users/hukka/Library/Python/2.7/lib/python/site-packages',
 '/Users/hukka/lib/python',
 '/Users/hukka/local/lib/python',
 '/Users/hukka/local/lib/python2.6/site-packages',
 '/Users/hukka/.local/lib/python',
 '/Users/hukka/.local/lib/python2.6/site-packages',
 '/Users/hukka/without-site/lib/python27.zip',
 '/Users/hukka/without-site/lib/python2.7',
 '/Users/hukka/without-site/lib/python2.7/plat-darwin',
 '/Users/hukka/without-site/lib/python2.7/plat-mac',
 '/Users/hukka/without-site/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/hukka/without-site/lib/python2.7/lib-tk',
 '/Users/hukka/without-site/lib/python2.7/lib-old',
 '/Users/hukka/without-site/lib/python2.7/lib-dynload',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/Users/hukka/without-site/lib/python2.7/site-packages',
 '/Users/hukka/lib/python',
 '/Users/hukka/local/lib/python',
 '/Users/hukka/local/lib/python2.6/site-packages',
 '/Users/hukka/.local/lib/python',
 '/Users/hukka/.local/lib/python2.6/site-packages']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.