Opened 12 years ago

Last modified 10 years ago

#34763 closed defect

python27 @2.7.3_0 Includes system paths in sys.path — at Version 1

Reported by: jameskyle@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.99
Keywords: Cc:
Port: python27 python31 python32 python33 python34

Description (last modified by jameskyle@…)

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.

Change History (1)

comment:1 Changed 12 years ago by jameskyle@…

Description: modified (diff)

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.

Note: See TracTickets for help on using tickets.