Package: python2.6
Version: 2.6.6-8+b1
Severity: important
Playing with the python sitelib settings, a NameError exception is raised
unexpectedly:
$ python setup.py install --no-compile --root=...
--record=INSTALLED_FILES --install-layout=unix
...
running install_egg_info
Traceback (most recent call last):
File "setup.py", line 170, in <module>
install()
File "setup.py", line 166, in install
**kwargs
File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "/usr/lib/python2.6/distutils/command/install.py", line 627, in
run
self.run_command(cmd_name)
File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.6/distutils/dist.py", line 994, in run_command
cmd_obj.ensure_finalized()
File "/usr/lib/python2.6/distutils/cmd.py", line 117, in
ensure_finalized
self.finalize_options()
File "/usr/lib/python2.6/distutils/command/install_egg_info.py", line
35, in finalize_options
raise DistutilsOptionError(
NameError: global name 'DistutilsOptionError' is not defined
The DistutilsOptionError exception is not imported in:
`Lib/distutils/command/install_egg_info.py`
The bug is caused by Debian patching about the "--install-layout" option.
But most importantly, my main concern is that the actual logic prevents
from building rpm packages in Debian platforms due to theses lines:
++ if not self.install_layout.lower() in ['deb']:
++ raise DistutilsOptionError(
++ "unknown value for --install-layout")
Why 'unix' value is not allowed if explicitly specified in line arguments ?
-- System Information:
Debian Release: 6.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python2.6 depends on:
ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libdb4.8 4.8.30-2 Berkeley v4.8 Database Libraries [
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libncursesw5 5.7+20100313-5 shared libraries for terminal hand
ii libreadline6 6.1-3 GNU readline and history libraries
ii libsqlite3-0 3.7.3-1 SQLite 3 shared library
ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap
ii python2.6-minimal 2.6.6-8+b1 A minimal subset of the Python lan
python2.6 recommends no packages.
Versions of packages python2.6 suggests:
ii binutils 2.20.1-16 The GNU assembler, linker and bina
ii python2.6-doc 2.6.6-8 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]