Merge lp:~jtaylor/ubuntu/precise/python-numpy/python3-numpy into lp:ubuntu/precise/python-numpy
- Precise (12.04)
- python3-numpy
- Merge into precise
Proposed by
Julian Taylor
on 2012-03-19
| 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 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ubuntu branches | 2012-03-19 | Pending | |
|
Review via email:
|
|||
Commit Message
Description of the Change
To post a comment you must log in.
| Jamie Strandboge (jdstrand) wrote : | # |
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
| 1 | === modified file 'debian/changelog' |
| 2 | --- debian/changelog 2012-03-19 06:50:35 +0000 |
| 3 | +++ debian/changelog 2012-03-19 18:48:19 +0000 |
| 4 | @@ -1,3 +1,34 @@ |
| 5 | +python-numpy (1:1.6.1-6ubuntu1) precise; urgency=low |
| 6 | + |
| 7 | + * Merge from Debian unstable, adds python3 package (LP: #795605, #959588) |
| 8 | + Remaining changes: |
| 9 | + - debian/patches/20_disable-plot-extension.patch |
| 10 | + Disable plot_directive extension, and catch ImportErrors when |
| 11 | + matplotlib cannot be imported, which allows us to remove |
| 12 | + python-matplotlib from dependencies. This is required because |
| 13 | + python-numpy is in main, while python-matplotlib is in universe. |
| 14 | + - Build using dh_python2 |
| 15 | + add bin/f2py* to .install files |
| 16 | + - keep Replaces: python-numpy (<< 1:1.3.0-4) in python-numpy-dbg |
| 17 | + for lucid upgrades |
| 18 | + - debian/patches/search-multiarch-paths.patch: (LP: #818867) |
| 19 | + add multiarch libdirs to numpy.distutils.system_info |
| 20 | + |
| 21 | + -- Julian Taylor <jtaylor@ubuntu.com> Mon, 19 Mar 2012 19:38:13 +0100 |
| 22 | + |
| 23 | +python-numpy (1:1.6.1-6) experimental; urgency=low |
| 24 | + |
| 25 | + [ Thomas Kluyver ] |
| 26 | + * Add package for Python 3; Closes: #601593 |
| 27 | + |
| 28 | + [ Sandro Tosi ] |
| 29 | + * Small fixes for python3 packaging |
| 30 | + * debian/control |
| 31 | + - bump Standards-Version to 3.9.3 (no changes needed) |
| 32 | + - remove quild from b-d, not needed since using 3.0 (quilt) format |
| 33 | + |
| 34 | + -- Sandro Tosi <morph@debian.org> Sat, 17 Mar 2012 13:05:04 +0100 |
| 35 | + |
| 36 | python-numpy (1:1.6.1-5ubuntu2) precise; urgency=low |
| 37 | |
| 38 | * update search-multiarch-paths.patch (LP: #956901) |
| 39 | |
| 40 | === modified file 'debian/control' |
| 41 | --- debian/control 2012-03-16 19:28:26 +0000 |
| 42 | +++ debian/control 2012-03-19 18:48:19 +0000 |
| 43 | @@ -4,9 +4,10 @@ |
| 44 | Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> |
| 45 | XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> |
| 46 | Uploaders: Sandro Tosi <morph@debian.org> |
| 47 | -Build-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-nose |
| 48 | -XS-Python-Version: >= 2.4 |
| 49 | -Standards-Version: 3.9.2 |
| 50 | +Build-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 |
| 51 | +X-Python-Version: >= 2.4 |
| 52 | +X-Python3-Version: >= 3.0 |
| 53 | +Standards-Version: 3.9.3 |
| 54 | Vcs-Svn: svn://svn.debian.org/python-modules/packages/numpy/trunk |
| 55 | Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/numpy/trunk/ |
| 56 | Homepage: http://numpy.scipy.org/ |
| 57 | @@ -45,6 +46,40 @@ |
| 58 | . |
| 59 | This package contains the extension built for the Python debug interpreter. |
| 60 | |
| 61 | +Package: python3-numpy |
| 62 | +Architecture: any |
| 63 | +Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends} |
| 64 | +Suggests: python-numpy-doc, python3-numpy-dbg, python3-nose (>= 0.10.1), python3-dev, gfortran |
| 65 | +Provides: ${python3:Provides}, ${numpy:Provides}, python3-numpy-dev, python3-f2py |
| 66 | +Description: Numerical Python adds a fast array facility to the Python language |
| 67 | + Numpy contains a powerful N-dimensional array object, sophisticated |
| 68 | + (broadcasting) functions, tools for integrating C/C++ and Fortran |
| 69 | + code, and useful linear algebra, Fourier transform, and random number |
| 70 | + capabilities. |
| 71 | + . |
| 72 | + Numpy replaces the python-numeric and python-numarray modules which are |
| 73 | + now deprecated and shouldn't be used except to support older |
| 74 | + software. |
| 75 | + . |
| 76 | + This package contains Numpy for Python 3. |
| 77 | + |
| 78 | +Package: python3-numpy-dbg |
| 79 | +Priority: extra |
| 80 | +Section: debug |
| 81 | +Architecture: any |
| 82 | +Depends: python3-numpy (= ${binary:Version}), python3-dbg, ${shlibs:Depends}, ${misc:Depends} |
| 83 | +Description: Fast array facility to the Python language (debug extension) |
| 84 | + Numpy contains a powerful N-dimensional array object, sophisticated |
| 85 | + (broadcasting) functions, tools for integrating C/C++ and Fortran |
| 86 | + code, and useful linear algebra, Fourier transform, and random number |
| 87 | + capabilities. |
| 88 | + . |
| 89 | + Numpy replaces the python-numeric and python-numarray modules which |
| 90 | + are now deprecated and shouldn't be used except to support older |
| 91 | + software. |
| 92 | + . |
| 93 | + This package contains the extension built for the Python 3 debug interpreter. |
| 94 | + |
| 95 | Package: python-numpy-doc |
| 96 | Depends: ${misc:Depends}, ${sphinxdoc:Depends} |
| 97 | Section: doc |
| 98 | |
| 99 | === modified file 'debian/python-numpy-dbg.install' |
| 100 | --- debian/python-numpy-dbg.install 2012-02-11 12:55:21 +0000 |
| 101 | +++ debian/python-numpy-dbg.install 2012-03-19 18:48:19 +0000 |
| 102 | @@ -1,3 +1,3 @@ |
| 103 | usr/bin/f2py-dbg |
| 104 | usr/bin/f2py2.?-dbg |
| 105 | -usr/lib/python*/*-packages/*/*/*_d.so |
| 106 | +usr/lib/python2*/*-packages/*/*/*_d.so |
| 107 | |
| 108 | === modified file 'debian/python-numpy.install' |
| 109 | --- debian/python-numpy.install 2012-02-11 12:55:21 +0000 |
| 110 | +++ debian/python-numpy.install 2012-03-19 18:48:19 +0000 |
| 111 | @@ -2,23 +2,23 @@ |
| 112 | usr/bin/f2py2.? |
| 113 | debian/dh_numpy usr/bin |
| 114 | debian/versions usr/share/numpy/ |
| 115 | -usr/lib/python*/*-packages/*/*/*[!_][!_].so |
| 116 | -usr/lib/python*/*-packages/*/*/*/libnpymath.a |
| 117 | -usr/lib/python*/*-packages/*/*.py |
| 118 | -usr/lib/python*/*-packages/*.egg-info |
| 119 | -usr/lib/python*/*-packages/numpy/*.py |
| 120 | -usr/lib/python*/*-packages/numpy/compat/ |
| 121 | -usr/lib/python*/*-packages/numpy/core/ |
| 122 | -usr/lib/python*/*-packages/numpy/distutils/ |
| 123 | -usr/lib/python*/*-packages/numpy/f2py/*.py |
| 124 | -usr/lib/python*/*-packages/numpy/f2py/src |
| 125 | -usr/lib/python*/*-packages/numpy/fft/ |
| 126 | -usr/lib/python*/*-packages/numpy/lib/ |
| 127 | -usr/lib/python*/*-packages/numpy/linalg/ |
| 128 | -usr/lib/python*/*-packages/numpy/ma/ |
| 129 | -usr/lib/python*/*-packages/numpy/matrixlib/ |
| 130 | -usr/lib/python*/*-packages/numpy/numarray/ |
| 131 | -usr/lib/python*/*-packages/numpy/oldnumeric/ |
| 132 | -usr/lib/python*/*-packages/numpy/polynomial/ |
| 133 | -usr/lib/python*/*-packages/numpy/random/ |
| 134 | -usr/lib/python*/*-packages/numpy/testing/ |
| 135 | +usr/lib/python2*/*-packages/*/*/*[!_][!_].so |
| 136 | +usr/lib/python2*/*-packages/*/*/*/libnpymath.a |
| 137 | +usr/lib/python2*/*-packages/*/*.py |
| 138 | +usr/lib/python2*/*-packages/*.egg-info |
| 139 | +usr/lib/python2*/*-packages/numpy/*.py |
| 140 | +usr/lib/python2*/*-packages/numpy/compat/ |
| 141 | +usr/lib/python2*/*-packages/numpy/core/ |
| 142 | +usr/lib/python2*/*-packages/numpy/distutils/ |
| 143 | +usr/lib/python2*/*-packages/numpy/f2py/*.py |
| 144 | +usr/lib/python2*/*-packages/numpy/f2py/src |
| 145 | +usr/lib/python2*/*-packages/numpy/fft/ |
| 146 | +usr/lib/python2*/*-packages/numpy/lib/ |
| 147 | +usr/lib/python2*/*-packages/numpy/linalg/ |
| 148 | +usr/lib/python2*/*-packages/numpy/ma/ |
| 149 | +usr/lib/python2*/*-packages/numpy/matrixlib/ |
| 150 | +usr/lib/python2*/*-packages/numpy/numarray/ |
| 151 | +usr/lib/python2*/*-packages/numpy/oldnumeric/ |
| 152 | +usr/lib/python2*/*-packages/numpy/polynomial/ |
| 153 | +usr/lib/python2*/*-packages/numpy/random/ |
| 154 | +usr/lib/python2*/*-packages/numpy/testing/ |
| 155 | |
| 156 | === added file 'debian/python3-numpy-dbg.install' |
| 157 | --- debian/python3-numpy-dbg.install 1970-01-01 00:00:00 +0000 |
| 158 | +++ debian/python3-numpy-dbg.install 2012-03-19 18:48:19 +0000 |
| 159 | @@ -0,0 +1,2 @@ |
| 160 | +usr/bin/f2py3.?-dbg |
| 161 | +usr/lib/python3*/*-packages/*/*/*.cpython-*d*.so |
| 162 | |
| 163 | === added file 'debian/python3-numpy.install' |
| 164 | --- debian/python3-numpy.install 1970-01-01 00:00:00 +0000 |
| 165 | +++ debian/python3-numpy.install 2012-03-19 18:48:19 +0000 |
| 166 | @@ -0,0 +1,21 @@ |
| 167 | +usr/bin/f2py3.? |
| 168 | +usr/lib/python3*/*-packages/*/*/*.cpython-3?[!d]*.so |
| 169 | +usr/lib/python3*/*-packages/*/*/*/libnpymath.a |
| 170 | +usr/lib/python3*/*-packages/*/*.py |
| 171 | +usr/lib/python3*/*-packages/*.egg-info |
| 172 | +usr/lib/python3*/*-packages/numpy/*.py |
| 173 | +usr/lib/python3*/*-packages/numpy/compat/ |
| 174 | +usr/lib/python3*/*-packages/numpy/core/ |
| 175 | +usr/lib/python3*/*-packages/numpy/distutils/ |
| 176 | +usr/lib/python3*/*-packages/numpy/f2py/*.py |
| 177 | +usr/lib/python3*/*-packages/numpy/f2py/src |
| 178 | +usr/lib/python3*/*-packages/numpy/fft/ |
| 179 | +usr/lib/python3*/*-packages/numpy/lib/ |
| 180 | +usr/lib/python3*/*-packages/numpy/linalg/ |
| 181 | +usr/lib/python3*/*-packages/numpy/ma/ |
| 182 | +usr/lib/python3*/*-packages/numpy/matrixlib/ |
| 183 | +usr/lib/python3*/*-packages/numpy/numarray/ |
| 184 | +usr/lib/python3*/*-packages/numpy/oldnumeric/ |
| 185 | +usr/lib/python3*/*-packages/numpy/polynomial/ |
| 186 | +usr/lib/python3*/*-packages/numpy/random/ |
| 187 | +usr/lib/python3*/*-packages/numpy/testing/ |
| 188 | |
| 189 | === modified file 'debian/rules' (properties changed: +x to -x) |
| 190 | --- debian/rules 2012-02-11 12:55:21 +0000 |
| 191 | +++ debian/rules 2012-03-19 18:48:19 +0000 |
| 192 | @@ -1,6 +1,7 @@ |
| 193 | #!/usr/bin/make -f |
| 194 | |
| 195 | -PYVERS=$(shell pyversions -vr debian/control) |
| 196 | +PY2VERS=$(shell pyversions -vr debian/control) |
| 197 | +PY3VERS=$(shell py3versions -vr) |
| 198 | PYDEF=$(shell pyversions -dv) |
| 199 | PYLIBPATH := $(shell python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib") |
| 200 | |
| 201 | @@ -10,26 +11,36 @@ |
| 202 | export ATLAS=None |
| 203 | |
| 204 | %: |
| 205 | - dh $@ --with sphinxdoc,python2 |
| 206 | + dh $@ --with sphinxdoc,python2,python3 |
| 207 | + |
| 208 | +override_dh_auto_build: |
| 209 | + dh_auto_build |
| 210 | + for v in $(PY3VERS); do \ |
| 211 | + python$$v setup.py build; \ |
| 212 | + python$$v-dbg setup.py build; \ |
| 213 | + done |
| 214 | |
| 215 | override_dh_auto_clean: |
| 216 | dh_auto_clean |
| 217 | rm -rf `find -name build -type d` |
| 218 | rm -rf `find . -name "*.pyc" -type f` |
| 219 | - rm -rf debian/tmp2 |
| 220 | |
| 221 | override_dh_installman: |
| 222 | dh_installman numpy/f2py/f2py.1 |
| 223 | # link manpage for versioned and dbg incarnations of f2py |
| 224 | - for v in $(PYVERS); do \ |
| 225 | + for v in $(PY2VERS); do \ |
| 226 | dh_link /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v.1.gz; \ |
| 227 | dh_link -ppython-numpy-dbg /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v-dbg.1.gz; \ |
| 228 | done |
| 229 | + for v in $(PY3VERS); do \ |
| 230 | + dh_link -ppython3-numpy /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v.1.gz; \ |
| 231 | + dh_link -ppython3-numpy-dbg /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py$$v-dbg.1.gz; \ |
| 232 | + done |
| 233 | dh_link -ppython-numpy-dbg /usr/share/man/man1/f2py.1.gz /usr/share/man/man1/f2py-dbg.1.gz; |
| 234 | |
| 235 | override_dh_install: |
| 236 | # add shebang information to f2py script |
| 237 | - for v in $(PYVERS); do \ |
| 238 | + for v in $(PY2VERS) $(PY3VERS); do \ |
| 239 | sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$$v," debian/tmp/usr/bin/f2py$$v; \ |
| 240 | cp -a debian/tmp/usr/bin/f2py$$v debian/tmp/usr/bin/f2py$$v-dbg ; \ |
| 241 | sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$$v-dbg," debian/tmp/usr/bin/f2py$$v-dbg; \ |
| 242 | @@ -40,27 +51,39 @@ |
| 243 | cp -a debian/tmp/usr/bin/f2py$(PYDEF)-dbg debian/tmp/usr/bin/f2py-dbg |
| 244 | sed -i "1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python-dbg," debian/tmp/usr/bin/f2py-dbg |
| 245 | |
| 246 | - |
| 247 | dh_install |
| 248 | |
| 249 | # remove files installed from .install (that's due to the dir listed there) |
| 250 | find $(CURDIR)/debian/python-numpy/ -name "*_d.so" -delete |
| 251 | |
| 252 | # create symlinks for .h files |
| 253 | - for i in $(PYVERS); do \ |
| 254 | + for i in $(PY2VERS); do \ |
| 255 | [ -d $(CURDIR)/debian/python-numpy/usr/include/python$$i ] || \ |
| 256 | mkdir -p $(CURDIR)/debian/python-numpy/usr/include/python$$i; \ |
| 257 | dh_link usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$$i/numpy; \ |
| 258 | done |
| 259 | - for i in $(PYVERS); do \ |
| 260 | + for i in $(PY2VERS); do \ |
| 261 | [ -d $(CURDIR)/debian/python-numpy/usr/include/python$${i}_d ] || \ |
| 262 | mkdir -p $(CURDIR)/debian/python-numpy/usr/include/python$${i}_d; \ |
| 263 | dh_link usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$${i}_d/numpy; \ |
| 264 | done |
| 265 | + # Python 3 |
| 266 | + for i in $(PY3VERS); do \ |
| 267 | + [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$$i ] || \ |
| 268 | + mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$$i; \ |
| 269 | + dh_link -ppython3-numpy usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$$i/numpy; \ |
| 270 | + done |
| 271 | + for i in $(PY3VERS); do \ |
| 272 | + [ -d $(CURDIR)/debian/python3-numpy/usr/include/python$${i}_d ] || \ |
| 273 | + mkdir -p $(CURDIR)/debian/python3-numpy/usr/include/python$${i}_d; \ |
| 274 | + dh_link -ppython3-numpy usr/lib/python$$i/dist-packages/numpy/core/include/numpy usr/include/python$${i}_d/numpy; \ |
| 275 | + done |
| 276 | |
| 277 | # share -dbg and normal package doc dirs |
| 278 | rm -rf debian/python-numpy-dbg/usr/share/doc/python-numpy-dbg |
| 279 | - dh_link usr/share/doc/python-numpy usr/share/doc/python-numpy-dbg |
| 280 | + dh_link -ppython-numpy-dbg usr/share/doc/python-numpy usr/share/doc/python-numpy-dbg |
| 281 | + rm -rf debian/python3-numpy-dbg/usr/share/doc/python3-numpy-dbg |
| 282 | + dh_link -ppython3-numpy-dbg usr/share/doc/python3-numpy usr/share/doc/python3-numpy-dbg |
| 283 | |
| 284 | override_dh_gencontrol: |
| 285 | python debian/versions.helper >> debian/python-numpy.substvars |
| 286 | @@ -72,6 +95,11 @@ |
| 287 | override_dh_strip: |
| 288 | ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) |
| 289 | dh_strip -ppython-numpy --dbg-package=python-numpy-dbg |
| 290 | + dh_strip -ppython3-numpy --dbg-package=python3-numpy-dbg |
| 291 | + # dh_strip seemingly doesn't catch the PEP 3149-style debug names |
| 292 | + rm debian/python3-numpy/usr/lib/python3*/*-packages/*/*/*.cpython-*d*.so |
| 293 | + |
| 294 | + # fix python-debug-in-wrong-location lintian warning |
| 295 | endif |
| 296 | |
| 297 | |
| 298 | @@ -105,13 +133,25 @@ |
| 299 | |
| 300 | override_dh_auto_install: |
| 301 | dh_auto_install |
| 302 | + |
| 303 | + # Install for Python 3 |
| 304 | + for v in $(PY3VERS); do \ |
| 305 | + python$$v setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ |
| 306 | + python$$v-dbg setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ |
| 307 | + done |
| 308 | + |
| 309 | # yes, we need to run tests after install |
| 310 | # The reason is that numpy tries hard to not let you run it from the |
| 311 | # source directory, so we need to mess with the import order so to |
| 312 | # select the code in the installation path |
| 313 | ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) |
| 314 | - -for v in $(PYVERS) ; do \ |
| 315 | + -for v in $(PY2VERS) ; do \ |
| 316 | python$$v -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \ |
| 317 | python$$v-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python$$v/dist-packages/') ; import numpy; numpy.test()" ; \ |
| 318 | done |
| 319 | + # Python 3.2 maps to python3/ dir alone? bah |
| 320 | + -for v in $(PY3VERS) ; do \ |
| 321 | + python$$v -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/') ; import numpy; numpy.test()" ; \ |
| 322 | + python$$v-dbg -c "import sys ; sys.path.insert(0, '$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages/') ; import numpy; numpy.test()" ; \ |
| 323 | + done |
| 324 | endif |


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