Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27964

Re: sys.path in python3.3

References (1 earlier) <nad-80CE8C.12211526082012@news.gmane.org> <CAAu18hc8tKnuCqcoiOVyPa1yc9QgvU-BqUOe91r7G3Ye8HG9NA@mail.gmail.com> <nad-08ED69.14231326082012@ger.gmane.org> <CAAu18hducpKutb49s_8KXD-16GamACF+E0TT1+=h5rrh+J55FQ@mail.gmail.com> <nad-6395CF.16183926082012@news.gmane.org>
Date 2012-08-27 08:03 +0100
Subject Re: sys.path in python3.3
From Nicholas Cole <nicholas.cole@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3861.1346050984.4697.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, Aug 27, 2012 at 12:18 AM, Ned Deily <nad@acm.org> wrote:
> In article
> <CAAu18hducpKutb49s_8KXD-16GamACF+E0TT1+=h5rrh+J55FQ@mail.gmail.com>,
>  Nicholas Cole <nicholas.cole@gmail.com> wrote:
>> It certainly does exist. Distutils will happily put packages into it,
>> but import won't find them.
>
> That's odd!  It works for me on 10.8 and it worked for me yesterday on
> 10.7 which I tested just after completing the python.org installer
> builds.  Perhaps there is some permission issue.  Or the path name isn't
> quite correct.  Or you have some PYTHON* environment variable set, like
> PYTHONNOUSERSITE?

I'm also on 10.8.

NPSC: nicholas$ set | grep PYTHON
NPSC: nicholas$

The only user configuration I've done is to create the following
configuration file:

NPSC:~ nicholas$ cat .pydistutils.cfg
[install]
install_lib = ~/Library/Python/$py_version_short/site-packages
install_scripts = ~/bin

I should say, this has been a problem for all of the python3.3 alpha
and beta releases, on previous releases of OS X.

I can't understand why it works on your setup, though, because I
haven't done anything at all (that I can think of) that ought of
affect it.  I wonder if the logic that adds the directory to sys.path
is being too clever for everyone's good?

Best wishes,

N.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: sys.path in python3.3 Nicholas Cole <nicholas.cole@gmail.com> - 2012-08-27 08:03 +0100

csiph-web