Bug#606870: python-openturns: creates a mess in sys.path by adding its own namespace

Bernd Zeimetz bzed at debian.org
Sun Dec 12 16:34:32 UTC 2010


Package: python-openturns
Version: 0.13.2-6
Severity: serious

Severity: serious as this breaks random other packages (like
castle-combat).

Packages shipping their public modules in the dist-packages directory
should never need to add their own namespace to sys.path. Unfortunately
openturns does so:

% cat /usr/lib/python2.6/dist-packages/openturns.pth
openturns

This breaks various random packages as openturns comes with common
module names like 'common' and 'test'.
Please note that there is never a need for packages which ship their
modules in dist-packages to modify sys.path - you can always import them
by using modulename.module.

I'm not sure what the reason in http://trac.openturns.org/ticket/67 was
to add the .pth file, but doing so was just wrong.

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

Kernel: Linux 2.6.35.7-think (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-openturns depends on:
ii  ghostscript             8.71~dfsg2-6     The GPL Ghostscript PostScript/PDF
ii  libatlas3gf-base [libla 3.8.3-28         Automatically Tuned Linear Algebra
ii  libblas3gf [libblas.so. 1.2-8            Basic Linear Algebra Reference imp
ii  libc6                   2.11.2-7         Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.5-8        GCC support library
ii  libgfortran3            4.4.5-8          Runtime library for GNU Fortran ap
ii  liblapack3gf [liblapack 3.2.2-1          library of linear algebra routines
ii  libopenturns0           0.13.2-6         dynamic libraries for OpenTURNS
ii  libstdc++6              4.4.5-8          The GNU Standard C++ Library v3
ii  libxml2                 2.7.8.dfsg-1     GNOME XML library
ii  python                  2.6.6-3+squeeze1 interactive high-level object-orie
ii  python-central          0.6.16+nmu1      register and build utility for Pyt
ii  python-qt3              3.18.1-4         Qt3 bindings for Python
ii  python-rpy2             2.1.9-1          Python interface to the GNU R lang

python-openturns recommends no packages.

python-openturns suggests no packages.

-- no debconf information





More information about the debian-science-maintainers mailing list