Package: python-setuptools
Version: 0.6.16-1
Severity: important

Hi,

when installing modules to a local location (--prefix=/usr/local) using
python2.6, easy_install tries to install the module to:

/usr/local/lib/python2.6/site-packages

This dir doesn't exist, is created by e_i but is not in any .pth file so
the output looks like this:
====
# easy_install-2.6 --prefix=/usr/local ComponentDependencyPlugin-0.1-py2.6.egg
TEST FAILED: /usr/local/lib/python2.6/site-packages does NOT support
.pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.6/site-packages

and your PYTHONPATH environment variable currently contains:

    ''
...etc
====

According to the
http://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html
former "site-packages" has been replaced by "dist-packages" for
python2.6+ and the dir:

/usr/local/lib/python2.6/dist-packages

is present and ready-waiting for installing modules (part of any .pth
file already).

One needs to run the following to go well:
easy_install --prefix=/usr/local \
             --install-dir=/usr/local/lib/python2.6/dist-packages \
             ComponentDependencyPlugin-0.1-py2.6.egg

Then the module is installed correctly and is directly importable.

Thanks,
  Rene Pavlik




-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-setuptools depends on:
ii  python                        2.6.6-14   interactive high-level object-orie
ii  python-pkg-resources          0.6.16-1   Package Discovery and Resource Acc

python-setuptools recommends no packages.

python-setuptools suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to