Package: python2.6
Version: 2.6.1-1
Severity: normal
Hello,
I have a setup.py file looking like:
from distutils.core import setup
setup(name='gcinvoice',
py_modules=['gcinvoice'],
)
Using this setup under python2.5 gives:
python2.5 setup.py install --prefix=/usr/local/stow/test
[...]
running install_lib
creating /usr/local/stow/test
creating /usr/local/stow/test/lib
creating /usr/local/stow/test/lib/python2.5
creating /usr/local/stow/test/lib/python2.5/site-packages
copying build/lib/gcinvoice.py ->
/usr/local/stow/test/lib/python2.5/site-packages
But using python2.6 I get:
python2.6 setup.py install --prefix=/usr/local/stow/test
[...]
creating /usr/local/stow/test
creating /usr/local/stow/test/local
creating /usr/local/stow/test/local/lib
creating /usr/local/stow/test/local/lib/python2.6
creating /usr/local/stow/test/local/lib/python2.6/dist-packages
copying build/lib.linux-x86_64-2.6/gcinvoice.py ->
/usr/local/stow/test/local/lib/python2.6/dist-packages
Here, there is an additional 'local' directory, and instead of
site-packages I get dist-packages. This looks wrong for me; the
documentation of python2.6
(file:///usr/share/doc/python2.6/html/install/index.html) states:
"In either case, the --prefix option defines the installation base, and
the --exec-prefix option defines the platform-specific installation
base, which is used for platform-specific files. (Currently, this just
means non-pure module distributions, but could be expanded to C
libraries, binary executables, etc.) If --exec-prefix is not supplied,
it defaults to --prefix. Files are installed as follows:
Type of file Installation Directory Override option
pure module distribution prefix/lib/pythonX.Y/site-packages
--install-purelib
"
I.e. there should be no "local" under "prefix", and it should be
"site-packages".
Best Regards, Roman
-- System Information:
Debian Release: squeeze/sid
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_SM.UTF-8, LC_CTYPE=de_SM.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages python2.6 depends on:
ii libbz2-1.0 1.0.5-1 high-quality block-sorting file co
ii libc6 2.9-6 GNU C Library: Shared libraries
ii libdb4.7 4.7.25-6 Berkeley v4.7 Database Libraries [
ii libncursesw5 5.7+20090228-1 shared libraries for terminal hand
ii libreadline5 5.2-4 GNU readline and history libraries
ii libsqlite3-0 3.6.11-1 SQLite 3 shared library
ii libssl0.9.8 0.9.8g-15 SSL shared libraries
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap
ii python2.6-minimal 2.6.1-1 A minimal subset of the Python lan
python2.6 recommends no packages.
Versions of packages python2.6 suggests:
ii binutils 2.19.1-1 The GNU assembler, linker and bina
ii python2.6-doc 2.6.1-1 Documentation for the high-level o
pn python2.6-profiler <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]