Re: avoiding system's "easy-install.pth" with custom distribution

Chris Barker <[email protected]>
Newsgroups gmane.comp.python.apple
Message-ID <CALGmxEJrWH6CioC6TroyE-nCKzG=BFEq2D7NEGXviCKG8meBmg@mail.gmail.com>
On Tue, Sep 10, 2013 at 11:16 PM, Ned Deily <[email protected]> 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

[email protected]

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.