Re: [Python-modules-team] Numpy 1.5 and python 3
Hi, On Sat, Jan 29, 2011 at 16:00, Ben Gamari bgamari.f...@gmail.com wrote: On Sat, 29 Jan 2011 15:19:18 +0100, Sandro Tosi mo...@debian.org wrote: Propose patches, and I'll see if they can be accepted. As you've probably noticed, I'm not exactly an expert in debian packaging. I did do some research[1], however, and it looks like the cdbs (0.4.83) currently shipped in ubuntu maverick doesn't support have support. numpy doesn't use cdbs since 1:1.4.1-1 Otherwise, it seems that the changes ought to be rather straightforward. I'll try putting up a PPA with my work. please post your debdiff on #601593 (i.e. don't expect me to monitor your ppa); alternatively, you also ask other comaintainers (uploaders at [1]) to do the work (that would be funny, in particular for supposedly active members). [1] http://packages.qa.debian.org/p/python-numpy.html Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi ___ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team
Re: [Python-modules-team] Numpy 1.5 and python 3
On Sun, 30 Jan 2011 13:43:28 +0100, Sandro Tosi mo...@debian.org wrote: Hi, On Sat, Jan 29, 2011 at 16:00, Ben Gamari bgamari.f...@gmail.com wrote: On Sat, 29 Jan 2011 15:19:18 +0100, Sandro Tosi mo...@debian.org wrote: Propose patches, and I'll see if they can be accepted. As you've probably noticed, I'm not exactly an expert in debian packaging. I did do some research[1], however, and it looks like the cdbs (0.4.83) currently shipped in ubuntu maverick doesn't support have support. numpy doesn't use cdbs since 1:1.4.1-1 Ahh, I suppose you are right. Alright, I guess I'll take another look. Unfortunately, I'm having difficulty just getting the unmodified packaging (from debian experimental) to build, numpy-1.5.1 $ dpkg-buildpackage ... running install_egg_info Removing /opt/exp/numpy/numpy-1.5.1/debian/tmp/usr/lib/python2.6/dist-packages/numpy-1.5.1.egg-info Writing /opt/exp/numpy/numpy-1.5.1/debian/tmp/usr/lib/python2.6/dist-packages/numpy-1.5.1.egg-info running install_clib copying build/temp.linux-x86_64-2.6/libnpymath.a - /opt/exp/numpy/numpy-1.5.1/debian/tmp/usr/lib/python2.6/dist-packages/numpy/core/lib debian/rules override_dh_install make[1]: Entering directory `/opt/exp/numpy/numpy-1.5.1' # add shebang information to f2py script for v in 2.6; do \ sed -i 1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$v, debian/tmp/usr/bin/f2py$v; \ cp -a debian/tmp/usr/bin/f2py$v debian/tmp/usr/bin/f2py$v-dbg ; \ sed -i 1s,#!.*python[^ ]*\(.*\),#!/usr/bin/python$v-dbg, debian/tmp/usr/bin/f2py$v-dbg; \ done sed: can't read debian/tmp/usr/bin/f2py2.6: No such file or directory cp: cannot stat `debian/tmp/usr/bin/f2py2.6': No such file or directory sed: can't read debian/tmp/usr/bin/f2py2.6-dbg: No such file or directory make[1]: *** [override_dh_install] Error 2 make[1]: Leaving directory `/opt/exp/numpy/numpy-1.5.1' make: *** [binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 numpy-1.5.1 $ ls debian/tmp/usr/bin f2py f2py-dbg Strange. I'm assuming the numpy build itself is supposed to generate these? Otherwise, it seems that the changes ought to be rather straightforward. I'll try putting up a PPA with my work. please post your debdiff on #601593 (i.e. don't expect me to monitor your ppa); Of course. Thanks for all of your assistance. - Ben ___ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team
[Python-modules-team] Numpy 1.5 and python 3
Now since there is finally a python3-capable version of numpy in the repository, how difficult would it be to generate python 3 packages in addition to the python 2 series? Numpy is one of the few things preventing me from moving to python 3 (in addition to scipy and I suppose gobject-introspection, although this is far less important). Is there a policy for determining when python 3 packages will begin being built? It seems like there are quite a few packages that now claim upstream support for 3, yet have no packages. Thanks, - Ben ___ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team
Re: [Python-modules-team] Numpy 1.5 and python 3
Propose patches, and I'll see if they can be accepted. Sandro On Sat, Jan 29, 2011 at 15:02, Ben Gamari bgamari.f...@gmail.com wrote: Now since there is finally a python3-capable version of numpy in the repository, how difficult would it be to generate python 3 packages in addition to the python 2 series? Numpy is one of the few things preventing me from moving to python 3 (in addition to scipy and I suppose gobject-introspection, although this is far less important). Is there a policy for determining when python 3 packages will begin being built? It seems like there are quite a few packages that now claim upstream support for 3, yet have no packages. Thanks, - Ben -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi ___ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team
Re: [Python-modules-team] Numpy 1.5 and python 3
On Sat, 29 Jan 2011 15:19:18 +0100, Sandro Tosi mo...@debian.org wrote: Propose patches, and I'll see if they can be accepted. As you've probably noticed, I'm not exactly an expert in debian packaging. I did do some research[1], however, and it looks like the cdbs (0.4.83) currently shipped in ubuntu maverick doesn't support have support. Otherwise, it seems that the changes ought to be rather straightforward. I'll try putting up a PPA with my work. By the way, what is the recommended way to track changes/generate patches in /debian packaging directories? - Ben ___ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team
Re: [Python-modules-team] Numpy 1.5 and python 3
[Ben Gamari, 2011-01-29] By the way, what is the recommended way to track changes/generate patches in /debian packaging directories? $ debcheckout python-numpy $ cd python-numpy $ sensible-editor debian/{control,rules} $ dch -m 'my changes $ svn diff my_changes.patch and yes, it looks like cdbs still doesn't support Python3 (my working patch was modified and now I don't know how to use it with Python 3.X now) -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 ___ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team
Re: [Python-modules-team] Numpy 1.5 and python 3
On Sat, 29 Jan 2011 10:00:06 -0500, Ben Gamari bgamari.f...@gmail.com wrote: On Sat, 29 Jan 2011 15:19:18 +0100, Sandro Tosi mo...@debian.org wrote: Propose patches, and I'll see if they can be accepted. As you've probably noticed, I'm not exactly an expert in debian packaging. I did do some research[1], however, and it looks like the cdbs (0.4.83) currently shipped in ubuntu maverick doesn't support have support. Otherwise, it seems that the changes ought to be rather straightforward. I'll try putting up a PPA with my work. By the way, what is the recommended way to track changes/generate patches in /debian packaging directories? - Ben In case you were wondering, [1] in the last message was referring to http://wiki.debian.org/Python/Packaging which claims, Right now Python 3 modules/extensions are not built by dh so you have to modify your debian/rules file, we'll fix that before Wheezy release. (In CDBS v0.4.90 to support Python 3, you'll have to add include /usr/share/cdbs/1/class/python3-distutils.mk line to debian/rules and python3-foo package(s) to debian/control. dh already invokes dh_python3 when you add --with python3 option, but it doesn't build modules/extensions for Python 3 yet. Unfortunately, it seems that either CDBS 0.4.90 nor 0.4.91 trees include this file. Google turns up a thread on debian-python where this file was introduced in an RFC patch[2], although there is no sign it was ever merged. Clearly I must be missing something here. - Ben [2] http://comments.gmane.org/gmane.linux.debian.devel.python/6305 ___ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team
Re: [Python-modules-team] Numpy 1.5 and python 3
On Sat, 29 Jan 2011 16:33:31 +0100, Piotr Ożarowski pi...@debian.org wrote: [Ben Gamari, 2011-01-29] By the way, what is the recommended way to track changes/generate patches in /debian packaging directories? $ debcheckout python-numpy $ cd python-numpy $ sensible-editor debian/{control,rules} $ dch -m 'my changes $ svn diff my_changes.patch Thanks! and yes, it looks like cdbs still doesn't support Python3 (my working patch was modified and now I don't know how to use it with Python 3.X now) Doh, I saw this just after I sent my last message. Alright, well, I guess I'll have to table this project for now in that case. Anyone have any idea how to do this? If so, could you update the description in the wiki[1]? Thanks! - Ben [1] http://wiki.debian.org/Python/Packaging ___ Python-modules-team mailing list Python-modules-team@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/python-modules-team