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
--- old/system_info.py 2010-11-18 11:11:51.000000000 +0000
+++ new/system_info.py 2011-09-08 16:22:17.931027598 +0000
@@ -200,6 +200,12 @@
'/usr/lib'], platform_bits)
default_x11_include_dirs = ['/usr/X11R6/include','/usr/X11/include',
'/usr/include']
+ import subprocess as sp
+ p = sp.Popen(["dpkg-architecture", "-qDEB_HOST_MULTIARCH"], stdout=sp.PIPE)
+ triplet = p.communicate()[0].strip()
+ if p.returncode == 0:
+ default_x11_lib_dirs += [os.path.join("/usr/lib/", triplet)]
+ default_lib_dirs += [os.path.join("/usr/lib/", triplet)]
if os.path.join(sys.prefix, 'lib') not in default_lib_dirs:
default_lib_dirs.insert(0,os.path.join(sys.prefix, 'lib'))
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team