Package: python-numpy Version: 1:1.7.1-1 Severity: important Tags: experimental patch
the abi tags changed in python3.3 (u is not needed anymore). Numpy hardcodes the tags in debian rules:87 set -e; for i in $(PY3VERS); do \ [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$${i}mu ] || \ mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$${i}mu; \ dh_link -ppython3-numpy usr/lib/python3/dist-packages/numpy/core/include/numpy usr/include/python$${i}mu/numpy; \ done ... Also python-numpy includes a symlink pythonX.Y_d folder which should be in python-numpy-dbg Please consider attached patch which should fix both issues.
diff -Nru python-numpy-1.7.1/debian/control python-numpy-1.7.1/debian/control --- python-numpy-1.7.1/debian/control 2013-03-03 15:39:47.000000000 +0100 +++ python-numpy-1.7.1/debian/control 2013-04-13 13:54:44.000000000 +0200 @@ -31,6 +31,8 @@ Section: debug Architecture: any Depends: python-numpy (= ${binary:Version}), python-dbg, ${shlibs:Depends}, ${misc:Depends} +Breaks: python-numpy (<< 1:1.7.1-1) +Replaces: python-numpy (<< 1:1.7.1-1) Description: Fast array facility to the Python language (debug extension) Numpy contains a powerful N-dimensional array object, sophisticated (broadcasting) functions, tools for integrating C/C++ and Fortran @@ -65,6 +67,8 @@ Section: debug Architecture: any Depends: python3-numpy (= ${binary:Version}), python3-dbg, ${shlibs:Depends}, ${misc:Depends} +Breaks: python3-numpy (<< 1:1.7.1-1) +Replaces: python3-numpy (<< 1:1.7.1-1) Description: Fast array facility to the Python language (debug extension) Numpy contains a powerful N-dimensional array object, sophisticated (broadcasting) functions, tools for integrating C/C++ and Fortran diff -Nru python-numpy-1.7.1/debian/rules python-numpy-1.7.1/debian/rules --- python-numpy-1.7.1/debian/rules 2013-03-03 15:39:47.000000000 +0100 +++ python-numpy-1.7.1/debian/rules 2013-04-13 13:20:17.000000000 +0200 @@ -82,18 +82,20 @@ set -e; for i in $(PY2VERS); do \ [ -d $(CURDIR)/debian/python-numpy/usr/include/python$${i}_d ] || \ mkdir -p $(CURDIR)/debian/python-numpy/usr/include/python$${i}_d; \ - dh_link usr/lib/pymodules/python$$i/numpy/core/include/numpy usr/include/python$${i}_d/numpy; \ + dh_link -ppython-numpy-dbg usr/lib/pymodules/python$$i/numpy/core/include/numpy usr/include/python$${i}_d/numpy; \ done # Python 3 set -e; for i in $(PY3VERS); do \ - [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$${i}mu ] || \ - mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$${i}mu; \ - dh_link -ppython3-numpy usr/lib/python3/dist-packages/numpy/core/include/numpy usr/include/python$${i}mu/numpy; \ + ABITAG=`python$$i -c "import sys; print(sys.abiflags)"`; \ + [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$$i$$ABITAG ] || \ + mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$$i$$ABITAG; \ + dh_link -ppython3-numpy usr/lib/python3/dist-packages/numpy/core/include/numpy usr/include/python$$i$$ABITAG/numpy; \ done set -e; for i in $(PY3VERS); do \ - [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$${i}dmu ] || \ - mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$${i}dmu; \ - dh_link -ppython3-numpy usr/lib/python3/dist-packages/numpy/core/include/numpy/ usr/include/python$${i}dmu/numpy; \ + ABITAG=`python$$i-dbg -c "import sys; print(sys.abiflags)"`; \ + [ -d $(CURDIR)/debian/python3-numpy-dbg/usr/include/python$${i}$$ABITAG ] || \ + mkdir -p $(CURDIR)/debian/python3-numpy-dbg/usr/include/python$${i}$$ABITAG; \ + dh_link -ppython3-numpy-dbg usr/lib/python3/dist-packages/numpy/core/include/numpy/ usr/include/python$${i}$$ABITAG/numpy; \ done # share -dbg and normal package doc dirs
_______________________________________________ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team