Package: python-scipy Version: 0.9.0+dfsg1-1 Severity: normal Tags: patch scipy supports python3 since 0.9.0, now that we have py3 numpy in experimental please also add packages for scipy. Attached a patch that should do it.
diff -Nru python-scipy-0.9.0+dfsg1/debian/changelog python-scipy-0.9.0+dfsg1/debian/changelog --- python-scipy-0.9.0+dfsg1/debian/changelog 2011-04-07 03:32:21.000000000 +0200 +++ python-scipy-0.9.0+dfsg1/debian/changelog 2012-03-20 21:25:47.000000000 +0100 @@ -1,3 +1,9 @@ +python-scipy (0.9.0+dfsg1-2) UNRELEASED; urgency=low + + * add python3 packages + + -- Julian Taylor <jtaylor.deb...@googlemail.com> Tue, 20 Mar 2012 19:39:57 +0100 + python-scipy (0.9.0+dfsg1-1) unstable; urgency=low * New upstream release (Closes: #614407, #579041, #569008) diff -Nru python-scipy-0.9.0+dfsg1/debian/control python-scipy-0.9.0+dfsg1/debian/control --- python-scipy-0.9.0+dfsg1/debian/control 2011-04-07 03:32:21.000000000 +0200 +++ python-scipy-0.9.0+dfsg1/debian/control 2012-03-20 20:36:57.000000000 +0100 @@ -6,8 +6,9 @@ Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.6.6-3~), python-all-dbg (>= 2.5.4-1~), python-numpy (>= 1:1.5.1), python-numpy-dbg (>= 1:1.5.1), gfortran, sharutils, swig, libsuitesparse-dev (>= 3.1.0-3), - libblas-dev | libatlas-base-dev, liblapack-dev | libatlas-base-dev + libblas-dev | libatlas-base-dev, liblapack-dev | libatlas-base-dev, python3-all-dev, python3-all-dbg, python3-numpy (>= 1:1.6.1), python3-numpy-dbg (>= 1:1.6.1) X-Python-Version: >= 2.4 +X-Python3-Version: >= 3.1 Standards-Version: 3.9.1 Homepage: http://www.scipy.org/ Vcs-Svn: svn://svn.debian.org/python-modules/packages/scipy/trunk @@ -31,6 +32,23 @@ programming tools, an expression-to-C++ compiler for fast execution, and others. +Package: python3-scipy +Architecture: any +Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends} +Recommends: g++ | c++-compiler +Description: scientific tools for Python3 + SciPy supplements the popular NumPy module (python-numpy package), gathering a + variety of high level science and engineering modules together as a single + package. + . + SciPy is a set of Open Source scientific and numeric tools for Python. It + currently supports special functions, integration, ordinary differential + equation (ODE) solvers, gradient optimization, genetic algorithms, parallel + programming tools, an expression-to-C++ compiler for fast execution, and + others. + . + This package provides the Python3 version. + Package: python-scipy-dbg Section: debug Architecture: any @@ -47,3 +65,20 @@ others. . This package provides debugging symbols for python-scipy. + +Package: python3-scipy-dbg +Section: debug +Architecture: any +Depends: ${python3:Depends}, python3-dbg, ${shlibs:Depends}, ${misc:Depends}, python3-scipy (= ${binary:Version}), python3-numpy-dbg (>= 1:1.6.1) +Description: scientific tools for Python3 - debugging symbols + SciPy supplements the popular NumPy module (python-numpy package), gathering a + variety of high level science and engineering modules together as a single + package. + . + SciPy is a set of Open Source scientific and numeric tools for Python. It + currently supports special functions, integration, ordinary differential + equation (ODE) solvers, gradient optimization, genetic algorithms, parallel + programming tools, an expression-to-C++ compiler for fast execution, and + others. + . + This package provides debugging symbols for python3-scipy. diff -Nru python-scipy-0.9.0+dfsg1/debian/rules python-scipy-0.9.0+dfsg1/debian/rules --- python-scipy-0.9.0+dfsg1/debian/rules 2011-04-07 03:32:21.000000000 +0200 +++ python-scipy-0.9.0+dfsg1/debian/rules 2012-03-20 21:33:10.000000000 +0100 @@ -4,20 +4,21 @@ export FFLAGS="-fPIC" export ATLAS=None -PYVERS:= $(shell pyversions -v -r debian/control) +PY2VERS:= $(shell pyversions -v -r debian/control) +PY3VERS:= $(shell py3versions -v -r debian/control) BASE=$(shell pwd)/debian DVER=$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | sed 's/-[^-]*$$//') UVER=$(shell echo $(DVER) | sed "s/+dfsg.*//g") %: - dh --with python2 $@ + dh $@ --with python2,python3 override_dh_auto_clean: rm -rf build find . -name "*.pyc" -exec rm {} \; override_dh_auto_install: - set -e; for v in $(PYVERS); do \ + set -e; for v in $(PY2VERS); do \ d=$(BASE)/python-scipy; \ mkdir -m 755 -p $$d/usr/share/doc/python-scipy; \ python$$v setup.py config_fc --noarch build; \ @@ -26,7 +27,16 @@ rm -f $$d/usr/lib/python$$v/*-packages/scipy/LICENSE.txt;\ python$$v setup.py clean --all; \ done - set -e; for v in $(PYVERS); do \ + set -e; for v in $(PY3VERS); do \ + d=$(BASE)/python3-scipy; \ + mkdir -m 755 -p $$d/usr/share/doc/python3-scipy; \ + python$$v setup.py config_fc --noarch build; \ + python$$v setup.py install --prefix $$d/usr \ + --no-compile --install-layout=deb; \ + rm -f $$d/usr/lib/python/*-packages/scipy/LICENSE.txt;\ + python$$v setup.py clean --all; \ + done + set -e; for v in $(PY2VERS); do \ d=$(BASE)/python-scipy-dbg; \ mkdir -m 755 -p $$d/usr/share/doc/python-scipy-dbg; \ CFLAGS="-g -ggdb" python$$v-dbg setup.py config_fc \ @@ -36,10 +46,24 @@ rm -f $$d/usr/lib/python$$v/*-packages/scipy/LICENSE.txt;\ python$$v-dbg setup.py clean --all; \ done + set -e; for v in $(PY3VERS); do \ + d=$(BASE)/python3-scipy-dbg; \ + mkdir -m 755 -p $$d/usr/share/doc/python3-scipy-dbg; \ + CFLAGS="-g -ggdb" python$$v-dbg setup.py config_fc \ + --noarch build; \ + python$$v-dbg setup.py install --prefix $$d/usr \ + --no-compile --install-layout=deb; \ + rm -f $$d/usr/lib/python/*-packages/scipy/LICENSE.txt;\ + python$$v-dbg setup.py clean --all; \ + done find debian/python-scipy-dbg ! -type d ! -name '*_d.so' | xargs rm -f + find debian/python3-scipy-dbg ! -type d ! -name '*_d.so' | xargs rm -f find debian/python-scipy-dbg -depth -empty -exec rmdir {} \; + find debian/python3-scipy-dbg -depth -empty -exec rmdir {} \; rm -fr $(BASE)/python-scipy*/usr/lib/python*/*-packages/scipy/weave/examples/ + # not ported to py3 in 0.9.0 + rm -rf $(BASE)/debian/python3-scipy/usr/lib/python3/dist-packages/scipy/weave #call dh_numpy dh_numpy @@ -52,9 +76,14 @@ done sed -i '1s|.|#!/usr/bin/python\n&|' $(BASE)/python-scipy//usr/share/pyshared/scipy/cluster/tests/vq_test.py sed -i '1s|.|#!/usr/bin/python\n&|' $(BASE)/python-scipy//usr/share/pyshared/scipy/stats/tests/test_stats.py + sed -i '1s|.|#!/usr/bin/python3\n&|' $(BASE)/python3-scipy//usr/lib/python3/dist-packages/scipy/cluster/tests/vq_test.py + sed -i '1s|.|#!/usr/bin/python3\n&|' $(BASE)/python3-scipy//usr/lib/python3/dist-packages/scipy/stats/tests/test_stats.py + #replace all the usr/bin/env python + find $(BASE)/debian/python3-scipy/usr/lib/python3/ -name "*.py" -type f | xargs sed -i -e "1s#usr/bin/env\s\+python\s*\$$#usr/bin/env python3#" override_dh_strip: - dh_strip --dbg-package=python-scipy-dbg + dh_strip -ppython-scipy --dbg-package=python-scipy-dbg + dh_strip -ppython3-scipy --dbg-package=python3-scipy-dbg get-orig-source: -uscan --force-download --download-version $(UVER) --rename
signature.asc
Description: OpenPGP digital signature