#34763: python27 @2.7.3_0 Includes system paths in sys.path ------------------------------------+--------------------------------------- Reporter: jameskyle@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.99 Keywords: | Port: ------------------------------------+--------------------------------------- Old description:
Macports installation of python 2.7 includes system paths in sys.path. This causes mucho problemo with module lookups.
Example:
['', '/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/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 /plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /plat-mac/lib-scriptpackages', '/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 /lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/readline', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /lib-dynload', '/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/aeosa', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/setuptools-0.6c11-py2.7.egg-info', '/Library/Python/2.7 /site-packages']
This effectively results in a broken python install with _very_ odd behavior.
The behavior was observed on a fresh install of macports with only a single package installed (a python package) and duplicated across multiple others.
New description: Macports installation of python 2.7 includes system paths in sys.path. This causes mucho problemo with module lookups. Example: ['', '/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/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 /plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /plat-mac/lib-scriptpackages', '/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 /lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/readline', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /lib-dynload', '/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/aeosa', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 /site-packages/setuptools-0.6c11-py2.7.egg-info', '/Library/Python/2.7 /site-packages'] The behavior was observed on a fresh install of macports with only a single package installed (a python package) and duplicated across multiple others. -- Comment(by jameskyle@…): Ah, one commonality on all systems that I just realized. They all had pip installed on the system level. I'll poke around and add to the ticket as needed. -- Ticket URL: <https://trac.macports.org/ticket/34763#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS