Merge lp:~jtaylor/ubuntu/precise/python-numpy/python3-numpy into lp:ubuntu/precise/python-numpy

Proposed by Julian Taylor
Status: Merged
Merge reported by: Jamie Strandboge
Merged at revision: not available
Proposed branch: lp:~jtaylor/ubuntu/precise/python-numpy/python3-numpy
Merge into: lp:ubuntu/precise/python-numpy
Diff against target: 324 lines (+163/-34)
7 files modified
debian/changelog (+31/-0)
debian/control (+38/-3)
debian/python-numpy-dbg.install (+1/-1)
debian/python-numpy.install (+20/-20)
debian/python3-numpy-dbg.install (+2/-0)
debian/python3-numpy.install (+21/-0)
debian/rules (+50/-10)
To merge this branch: bzr merge lp:~jtaylor/ubuntu/precise/python-numpy/python3-numpy
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+98257@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This is in precise now: 1:1.6.1-6ubuntu1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-03-19 06:50:35 +0000
+++ debian/changelog 2012-03-19 18:48:19 +0000
@@ -1,3 +1,34 @@
1python-numpy (1:1.6.1-6ubuntu1) precise; urgency=low
2
3 * Merge from Debian unstable, adds python3 package (LP: #795605, #959588)
4 Remaining changes:
5 - debian/patches/20_disable-plot-extension.patch
6 Disable plot_directive extension, and catch ImportErrors when
7 matplotlib cannot be imported, which allows us to remove
8 python-matplotlib from dependencies. This is required because
9 python-numpy is in main, while python-matplotlib is in universe.
10 - Build using dh_python2
11 add bin/f2py* to .install files
12 - keep Replaces: python-numpy (<< 1:1.3.0-4) in python-numpy-dbg
13 for lucid upgrades
14 - debian/patches/search-multiarch-paths.patch: (LP: #818867)
15 add multiarch libdirs to numpy.distutils.system_info
16
17 -- Julian Taylor <jtaylor@ubuntu.com> Mon, 19 Mar 2012 19:38:13 +0100
18
19python-numpy (1:1.6.1-6) experimental; urgency=low
20
21 [ Thomas Kluyver ]
22 * Add package for Python 3; Closes: #601593
23
24 [ Sandro Tosi ]
25 * Small fixes for python3 packaging
26 * debian/control
27 - bump Standards-Version to 3.9.3 (no changes needed)
28 - remove quild from b-d, not needed since using 3.0 (quilt) format
29
30 -- Sandro Tosi <morph@debian.org> Sat, 17 Mar 2012 13:05:04 +0100
31
1python-numpy (1:1.6.1-5ubuntu2) precise; urgency=low32python-numpy (1:1.6.1-5ubuntu2) precise; urgency=low
233
3 * update search-multiarch-paths.patch (LP: #956901)34 * update search-multiarch-paths.patch (LP: #956901)
435
=== modified file 'debian/control'
--- debian/control 2012-03-16 19:28:26 +0000
+++ debian/control 2012-03-19 18:48:19 +0000
@@ -4,9 +4,10 @@
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>5XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
6Uploaders: Sandro Tosi <morph@debian.org>6Uploaders: Sandro Tosi <morph@debian.org>
7Build-Depends: python-all-dev (>= 2.6.6-3~), python-all-dbg, gfortran (>= 4:4.2), libblas-dev [!arm !m68k], liblapack-dev [!arm !m68k], debhelper (>= 7.0.50~), patchutils, python-docutils, quilt, python-sphinx (>= 1.0.7+dfsg), python-nose7Build-Depends: python-all-dev (>= 2.6.6-3~), python-all-dbg, gfortran (>= 4:4.2), libblas-dev [!arm !m68k], liblapack-dev [!arm !m68k], debhelper (>= 7.0.50~), patchutils, python-docutils, python-sphinx (>= 1.0.7+dfsg), python-nose, python3-all-dev, python3-all-dbg, python3-nose
8XS-Python-Version: >= 2.48X-Python-Version: >= 2.4
9Standards-Version: 3.9.29X-Python3-Version: >= 3.0
10Standards-Version: 3.9.3
10Vcs-Svn: svn://svn.debian.org/python-modules/packages/numpy/trunk11Vcs-Svn: svn://svn.debian.org/python-modules/packages/numpy/trunk
11Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/numpy/trunk/12Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/numpy/trunk/
12Homepage: http://numpy.scipy.org/13Homepage: http://numpy.scipy.org/
@@ -45,6 +46,40 @@
45 .46 .
46 This package contains the extension built for the Python debug interpreter.47 This package contains the extension built for the Python debug interpreter.
4748
49Package: python3-numpy
50Architecture: any
51Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
52Suggests: python-numpy-doc, python3-numpy-dbg, python3-nose (>= 0.10.1), python3-dev, gfortran
53Provides: ${python3:Provides}, ${numpy:Provides}, python3-numpy-dev, python3-f2py
54Description: Numerical Python adds a fast array facility to the Python language
55 Numpy contains a powerful N-dimensional array object, sophisticated
56 (broadcasting) functions, tools for integrating C/C++ and Fortran
57 code, and useful linear algebra, Fourier transform, and random number
58 capabilities.
59 .
60 Numpy replaces the python-numeric and python-numarray modules which are
61 now deprecated and shouldn't be used except to support older
62 software.
63 .
64 This package contains Numpy for Python 3.
65
66Package: python3-numpy-dbg
67Priority: extra
68Section: debug
69Architecture: any
70Depends: python3-numpy (= ${binary:Version}), python3-dbg, ${shlibs:Depends}, ${misc:Depends}
71Description: Fast array facility to the Python language (debug extension)
72 Numpy contains a powerful N-dimensional array object, sophisticated
73 (broadcasting) functions, tools for integrating C/C++ and Fortran
74 code, and useful linear algebra, Fourier transform, and random number
75 capabilities.
76 .
77 Numpy replaces the python-numeric and python-numarray modules which
78 are now deprecated and shouldn't be used except to support older
79 software.
80 .
81 This package contains the extension built for the Python 3 debug interpreter.
82
48Package: python-numpy-doc83Package: python-numpy-doc
49Depends: ${misc:Depends}, ${sphinxdoc:Depends}84Depends: ${misc:Depends}, ${sphinxdoc:Depends}
50Section: doc85Section: doc
5186
=== modified file 'debian/python-numpy-dbg.install'
--- debian/python-numpy-dbg.install 2012-02-11 12:55:21 +0000
+++ debian/python-numpy-dbg.install 2012-03-19 18:48:19 +0000
@@ -1,3 +1,3 @@
1usr/bin/f2py-dbg1usr/bin/f2py-dbg
2usr/bin/f2py2.?-dbg2usr/bin/f2py2.?-dbg
3usr/lib/python*/*-packages/*/*/*_d.so3usr/lib/python2*/*-packages/*/*/*_d.so
44
=== modified file 'debian/python-numpy.install'
--- debian/python-numpy.install 2012-02-11 12:55:21 +0000
+++ debian/python-numpy.install 2012-03-19 18:48:19 +0000
@@ -2,23 +2,23 @@
2usr/bin/f2py2.?2usr/bin/f2py2.?
3debian/dh_numpy usr/bin3debian/dh_numpy usr/bin
4debian/versions usr/share/numpy/4debian/versions usr/share/numpy/
5usr/lib/python*/*-packages/*/*/*[!_][!_].so5usr/lib/python2*/*-packages/*/*/*[!_][!_].so
6usr/lib/python*/*-packages/*/*/*/libnpymath.a6usr/lib/python2*/*-packages/*/*/*/libnpymath.a
7usr/lib/python*/*-packages/*/*.py7usr/lib/python2*/*-packages/*/*.py
8usr/lib/python*/*-packages/*.egg-info8usr/lib/python2*/*-packages/*.egg-info
9usr/lib/python*/*-packages/numpy/*.py9usr/lib/python2*/*-packages/numpy/*.py
10usr/lib/python*/*-packages/numpy/compat/10usr/lib/python2*/*-packages/numpy/compat/
11usr/lib/python*/*-packages/numpy/core/11usr/lib/python2*/*-packages/numpy/core/
12usr/lib/python*/*-packages/numpy/distutils/12usr/lib/python2*/*-packages/numpy/distutils/
13usr/lib/python*/*-packages/numpy/f2py/*.py13usr/lib/python2*/*-packages/numpy/f2py/*.py
14usr/lib/python*/*-packages/numpy/f2py/src14usr/lib/python2*/*-packages/numpy/f2py/src
15usr/lib/python*/*-packages/numpy/fft/15usr/lib/python2*/*-packages/numpy/fft/
16usr/lib/python*/*-packages/numpy/lib/16usr/lib/python2*/*-packages/numpy/lib/
17usr/lib/python*/*-packages/numpy/linalg/17usr/lib/python2*/*-packages/numpy/linalg/
18usr/lib/python*/*-packages/numpy/ma/18usr/lib/python2*/*-packages/numpy/ma/
19usr/lib/python*/*-packages/numpy/matrixlib/19usr/lib/python2*/*-packages/numpy/matrixlib/
20usr/lib/python*/*-packages/numpy/numarray/20usr/lib/python2*/*-packages/numpy/numarray/
21usr/lib/python*/*-packages/numpy/oldnumeric/21usr/lib/python2*/*-packages/numpy/oldnumeric/
22usr/lib/python*/*-packages/numpy/polynomial/22usr/lib/python2*/*-packages/numpy/polynomial/
23usr/lib/python*/*-packages/numpy/random/23usr/lib/python2*/*-packages/numpy/random/
24usr/lib/python*/*-packages/numpy/testing/24usr/lib/python2*/*-packages/numpy/testing/
2525
=== added file 'debian/python3-numpy-dbg.install'
--- debian/python3-numpy-dbg.install 1970-01-01 00:00:00 +0000
+++ debian/python3-numpy-dbg.install 2012-03-19 18:48:19 +0000
@@ -0,0 +1,2 @@
1usr/bin/f2py3.?-dbg
2usr/lib/python3*/*-packages/*/*/*.cpython-*d*.so
03
=== added file 'debian/python3-numpy.install'
--- debian/python3-numpy.install 1970-01-01 00:00:00 +0000
+++ debian/python3-numpy.install 2012-03-19 18:48:19 +0000
@@ -0,0 +1,21 @@
1usr/bin/f2py3.?
2usr/lib/python3*/*-packages/*/*/*.cpython-3?[!d]*.so
3usr/lib/python3*/*-packages/*/*/*/libnpymath.a
4usr/lib/python3*/*-packages/*/*.py
5usr/lib/python3*/*-packages/*.egg-info
6usr/lib/python3*/*-packages/numpy/*.py
7usr/lib/python3*/*-packages/numpy/compat/
8usr/lib/python3*/*-packages/numpy/core/
9usr/lib/python3*/*-packages/numpy/distutils/
10usr/lib/python3*/*-packages/numpy/f2py/*.py
11usr/lib/python3*/*-packages/numpy/f2py/src
12usr/lib/python3*/*-packages/numpy/fft/
13usr/lib/python3*/*-packages/numpy/lib/
14usr/lib/python3*/*-packages/numpy/linalg/
15usr/lib/python3*/*-packages/numpy/ma/
16usr/lib/python3*/*-packages/numpy/matrixlib/
17usr/lib/python3*/*-packages/numpy/numarray/
18usr/lib/python3*/*-packages/numpy/oldnumeric/
19usr/lib/python3*/*-packages/numpy/polynomial/
20usr/lib/python3*/*-packages/numpy/random/
21usr/lib/python3*/*-packages/numpy/testing/
022
=== modified file 'debian/rules' (properties changed: +x to -x)
--- debian/rules 2012-02-11 12:55:21 +0000
+++ debian/rules 2012-03-19 18:48:19 +0000
@@ -1,6 +1,7 @@
1#!/usr/bin/make -f1#!/usr/bin/make -f
22
3PYVERS=$(shell pyversions -vr debian/control)3PY2VERS=$(shell pyversions -vr debian/control)
4PY3VERS=$(shell py3versions -vr)
4PYDEF=$(shell pyversions -dv)5PYDEF=$(shell pyversions -dv)
5PYLIBPATH := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib")6PYLIBPATH := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib")
67
@@ -10,26 +11,36 @@
10export ATLAS=None11export ATLAS=None
1112
12%:13%:
13 dh $@ --with sphinxdoc,python214 dh $@ --with sphinxdoc,python2,python3
15
16override_dh_auto_build:
17 dh_auto_build
18 for v in $(PY3VERS); do \
19 python$$v setup.py build; \
20 python$$v-dbg setup.py build; \
21 done
1422
15override_dh_auto_clean:23override_dh_auto_clean:
16 dh_auto_clean24 dh_auto_clean
17 rm -rf `find -name build -type d`25 rm -rf `find -name build -type d`
18 rm -rf `find . -name "*.pyc" -type f`26 rm -rf `find . -name "*.pyc" -type f`
19 rm -rf debian/tmp2
2027
21override_dh_installman:28override_dh_installman:
22 dh_installman numpy/f2py/f2py.129 dh_installman numpy/f2py/f2py.1
23 # link manpage for versioned and dbg incarnations of f2py30 # link manpage for versioned and dbg incarnations of f2py
24 for v in $(PYVERS); do \31 for v in $(PY2VERS); do \
25 dh_link /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v.1.gz; \32 dh_link /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v.1.gz; \
26 dh_link -ppython-numpy-dbg /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v-dbg.1.gz; \33 dh_link -ppython-numpy-dbg /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v-dbg.1.gz; \
27 done34 done
35 for v in $(PY3VERS); do \
36 dh_link -ppython3-numpy /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v.1.gz; \
37 dh_link -ppython3-numpy-dbg /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v-dbg.1.gz; \
38 done
28 dh_link -ppython-numpy-dbg /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py-dbg.1.gz;39 dh_link -ppython-numpy-dbg /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py-dbg.1.gz;
2940
30override_dh_install:41override_dh_install:
31 # add shebang information to f2py script42 # add shebang information to f2py script
32 for v in $(PYVERS); do \43 for v in $(PY2VERS) $(PY3VERS); do \
33 sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$$v," debian/tmp/usr/bin/f2py$$v; \44 sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$$v," debian/tmp/usr/bin/f2py$$v; \
34 cp -a debian/tmp/usr/bin/f2py$$v debian/tmp/usr/bin/f2py$$v-dbg ; \45 cp -a debian/tmp/usr/bin/f2py$$v debian/tmp/usr/bin/f2py$$v-dbg ; \
35 sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$$v-dbg," debian/tmp/usr/bin/f2py$$v-dbg; \46 sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$$v-dbg," debian/tmp/usr/bin/f2py$$v-dbg; \
@@ -40,27 +51,39 @@
40 cp -a debian/tmp/usr/bin/f2py$(PYDEF)-dbg debian/tmp/usr/bin/f2py-dbg51 cp -a debian/tmp/usr/bin/f2py$(PYDEF)-dbg debian/tmp/usr/bin/f2py-dbg
41 sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python-dbg," debian/tmp/usr/bin/f2py-dbg52 sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python-dbg," debian/tmp/usr/bin/f2py-dbg
4253
43
44 dh_install54 dh_install
4555
46 # remove files installed from .install (that's due to the dir listed there)56 # remove files installed from .install (that's due to the dir listed there)
47 find $(CURDIR)/debian/python-numpy/ -name "*_d.so" -delete57 find $(CURDIR)/debian/python-numpy/ -name "*_d.so" -delete
4858
49 # create symlinks for .h files59 # create symlinks for .h files
50 for i in $(PYVERS); do \60 for i in $(PY2VERS); do \
51 [ -d $(CURDIR)/debian/python-numpy/usr/include/python$$i ] || \61 [ -d $(CURDIR)/debian/python-numpy/usr/include/python$$i ] || \
52 mkdir -p $(CURDIR)/debian/python-numpy/usr/include/python$$i; \62 mkdir -p $(CURDIR)/debian/python-numpy/usr/include/python$$i; \
53 dh_link usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$$i/numpy; \63 dh_link usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$$i/numpy; \
54 done64 done
55 for i in $(PYVERS); do \65 for i in $(PY2VERS); do \
56 [ -d $(CURDIR)/debian/python-numpy/usr/include/python$${i}_d ] || \66 [ -d $(CURDIR)/debian/python-numpy/usr/include/python$${i}_d ] || \
57 mkdir -p $(CURDIR)/debian/python-numpy/usr/include/python$${i}_d; \67 mkdir -p $(CURDIR)/debian/python-numpy/usr/include/python$${i}_d; \
58 dh_link usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$${i}_d/numpy; \68 dh_link usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$${i}_d/numpy; \
59 done69 done
70 # Python 3
71 for i in $(PY3VERS); do \
72 [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$$i ] || \
73 mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$$i; \
74 dh_link -ppython3-numpy usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$$i/numpy; \
75 done
76 for i in $(PY3VERS); do \
77 [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$${i}_d ] || \
78 mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$${i}_d; \
79 dh_link -ppython3-numpy usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$${i}_d/numpy; \
80 done
6081
61 # share -dbg and normal package doc dirs82 # share -dbg and normal package doc dirs
62 rm -rf debian/python-numpy-dbg/usr/share/doc/python-numpy-dbg83 rm -rf debian/python-numpy-dbg/usr/share/doc/python-numpy-dbg
63 dh_link usr/share/doc/python-numpy usr/share/doc/python-numpy-dbg84 dh_link -ppython-numpy-dbg usr/share/doc/python-numpy usr/share/doc/python-numpy-dbg
85 rm -rf debian/python3-numpy-dbg/usr/share/doc/python3-numpy-dbg
86 dh_link -ppython3-numpy-dbg usr/share/doc/python3-numpy usr/share/doc/python3-numpy-dbg
6487
65override_dh_gencontrol:88override_dh_gencontrol:
66 python debian/versions.helper >> debian/python-numpy.substvars89 python debian/versions.helper >> debian/python-numpy.substvars
@@ -72,6 +95,11 @@
72override_dh_strip:95override_dh_strip:
73ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))96ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
74 dh_strip -ppython-numpy --dbg-package=python-numpy-dbg97 dh_strip -ppython-numpy --dbg-package=python-numpy-dbg
98 dh_strip -ppython3-numpy --dbg-package=python3-numpy-dbg
99 # dh_strip seemingly doesn't catch the PEP 3149-style debug names
100 rm debian/python3-numpy/usr/lib/python3*/*-packages/*/*/*.cpython-*d*.so
101
102 # fix python-debug-in-wrong-location lintian warning
75endif103endif
76104
77105
@@ -105,13 +133,25 @@
105133
106override_dh_auto_install:134override_dh_auto_install:
107 dh_auto_install135 dh_auto_install
136
137 # Install for Python 3
138 for v in $(PY3VERS); do \
139 python$$v setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
140 python$$v-dbg setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
141 done
142
108 # yes, we need to run tests after install143 # yes, we need to run tests after install
109 # The reason is that numpy tries hard to not let you run it from the144 # The reason is that numpy tries hard to not let you run it from the
110 # source directory, so we need to mess with the import order so to145 # source directory, so we need to mess with the import order so to
111 # select the code in the installation path146 # select the code in the installation path
112ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))147ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
113 -for v in $(PYVERS) ; do \148 -for v in $(PY2VERS) ; do \
114 python$$v -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \149 python$$v -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \
115 python$$v-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \150 python$$v-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \
116 done151 done
152 # Python 3.2 maps to python3/ dir alone? bah
153 -for v in $(PY3VERS) ; do \
154 python$$v -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/') ; import numpy; numpy.test()" ; \
155 python$$v-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/') ; import numpy; numpy.test()" ; \
156 done
117endif157endif

Subscribers

People subscribed via source and target branches

to all changes: