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


Groups > comp.lang.python > #27964 > unrolled thread

Re: sys.path in python3.3

Started byNicholas Cole <nicholas.cole@gmail.com>
First post2012-08-27 08:03 +0100
Last post2012-08-27 08:03 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#27964 — Re: sys.path in python3.3

FromNicholas Cole <nicholas.cole@gmail.com>
Date2012-08-27 08:03 +0100
SubjectRe: sys.path in python3.3
Message-ID<mailman.3861.1346050984.4697.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web