[Python-modules-team] Bug#640940: python-numpy: numpy.distutils not multiarch aware

Julian Taylor jtaylor.debian at googlemail.com
Thu Sep 8 16:31:42 UTC 2011


Package: python-numpy
Version: 1:1.5.1-2ubuntu2
Severity: normal
Tags: patch

numpy.distutils is not multiarch aware.
this causes problems when its searching for libraries.
E.g. when building in python-enable:

python setup.py develop
....
/usr/lib/pymodules/python2.6/numpy/distutils/system_info.py:459: UserWarning:
X11 libraries not found.
  warnings.warn(self.notfounderror.__doc__)

this is caused by numpy.distutils not checking in the multiarch triplet paths.
Attached patch fixes this issue, but due to the lack of a proper way to obtain
the triplet its quite ugly.
one could also use gcc -print-multiarch to obtain the triplet instead of dpkg-
architecture

See also:
https://github.com/enthought/enable/issues/34#issuecomment-2029381
https://bugs.launchpad.net/ubuntu/+source/python-numpy/+bug/818867



-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric'), (100, 'oneiric-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-10-generic (SMP w/4 CPU cores)
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-numpy depends on:
ii  libatlas3gf-base [liblapa 3.8.4-3        Automatically Tuned Linear Algebra
ii  libblas3gf [libblas.so.3g 1.2.20110419-2 Basic Linear Algebra Reference imp
ii  libc6                     2.13-17ubuntu2 Embedded GNU C Library: Shared lib
ii  liblapack3gf [liblapack.s 3.3.0-4        library of linear algebra routines
ii  python                    2.7.2-5ubuntu1 interactive high-level object-orie
ii  python-support            1.0.13ubuntu1  automated rebuilding support for P

python-numpy recommends no packages.

Versions of packages python-numpy suggests:
ii  gfortran                4:4.6.1-2ubuntu5 GNU Fortran 95 compiler
ii  python-dev              2.7.2-5ubuntu1   header files and a static library 
ii  python-nose             1.0.0-1ubuntu1   test discovery and running for Pyt
pn  python-numpy-dbg        <none>           (no description available)
pn  python-numpy-doc        <none>           (no description available)

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: numpy-multiarch.patch
Type: text/x-java
Size: 775 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20110908/2fd18345/attachment.java>


More information about the Python-modules-team mailing list