#34763: python27 @2.7.3_0 Includes system paths in sys.path ------------------------------------+--------------------------------------- Reporter: jameskyle@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.99 Keywords: | Port: ------------------------------------+--------------------------------------- Comment(by jameskyle@…): Replying to [comment:9 nad@…]:
Right, it has nothing to do with pip. As I explained above, it's a change in Python 2.7. If you want the behavior changed, you should open an issue on the Python bug tracker.
I'm not so sure this is an upstream issue. When I compile my own python 2.7 on the same system with ./configure --prefix=/Users/jkyle/Downloads/Python && make -j8 && make install And none of the non-install paths are present. >>> sys.path ['', '/Users/jkyle/Downloads/Python/lib/python27.zip', '/Users/jkyle/Downloads/Python/lib/python2.7', '/Users/jkyle/Downloads/Python/lib/python2.7/plat-darwin', '/Users/jkyle/Downloads/Python/lib/python2.7/plat-mac', '/Users/jkyle/Downloads/Python/lib/python2.7/plat-mac/lib-scriptpackages', '/Users/jkyle/Downloads/Python/lib/python2.7/lib-tk', '/Users/jkyle/Downloads/Python/lib/python2.7/lib-old', '/Users/jkyle/Downloads/Python/lib/python2.7/lib-dynload', '/Users/jkyle/Downloads/Python/lib/python2.7/site-packages'] I suspect the issue may lie in the macports python build itself. I'll look into this and update as needed. -- Ticket URL: <https://trac.macports.org/ticket/34763#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS