[Pythonmac-SIG] avoiding system's "easy-install.pth" with custom distribution

Chris Barker chris.barker at noaa.gov
Thu Sep 12 04:28:41 CEST 2013


On Tue, Sep 10, 2013 at 11:16 PM, Ned Deily <nad at acm.org> wrote:

> The behavior is the result of a feature added in 2.7 for Issue4865 which
> appends the site-packages directory for the Apple-supplied system Python
> to sys.path of a Python framework build.  With hindsight, I don't think
> this was a good idea


yeah, probably not....


> The path appends occur in the standard library "site" module.  You could
> patch it in your own interpreter to not include /Library/Python; you
> might be also be able to do it by supplying a "sitecustomize" module.
> See site.py for details.
>
>
Could you simply remove it from sys.path at start-up for your app?
(probably when you toss out PYTHONPATH)

-Chris

-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20130911/0db4e5cb/attachment.html>


More information about the Pythonmac-SIG mailing list