Re: How do I add support for python3 to my package?
Hi Paul (2012.04.18_22:09:35_+0200) Nobody thinks python3 is important enough to have a debhelper infrastructure? The solution to that is multibuild, it just isn't ready yet. When it is, I think it's safe to assume that debhelper will learn how to drive it, pretty quickly. It'll also improve a bunch of other situations where dh doesn't handle debian-python's needs (e.g. autotools packages). In the meantime, doing it by hand with overrides really isn't that hard or fragile. SR -- Stefano Rivera http://tumbleweed.org.za/ H: +27 21 461 1230 C: +27 72 419 8559 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120419115656.gu2...@bach.rivera.co.za
Re: How do I add support for python3 to my package?
On Thursday, April 12, 2012 08:30:41 AM Barry Warsaw wrote: Hi Paul, On Apr 12, 2012, at 02:09 AM, Paul Elliott wrote: A recent review of my package asked me to consider making a python3 version. Excellent! One more down the road to Python 3 world domination. :) But the response below says that is difficult. It is several months old, has this changed? I think it's not so hard, and you should definitely do it. It's true that the tools need to catch up to Python 3, but I think most packages can be adapted to include python3-* versions without too much trouble. You might find this wiki page helpful: http://wiki.debian.org/Python/LibraryStyleGuide I am not a expert python packager. I am dubious about a bunch of cargo cult packagers all writing seperate but similar debian/rules complications. It seems like one is creating a lot of debugging/maintainance problems. Why can not some expert that really know what she is doing write the neccessary infrastructure so that one could write %: dh $@ --with python2-and-python3 I am not an expert and not particularly interested in joining a cargo cult. I think that would be a better way to encourage python3 extensions. Cheers, -Barry -- Paul Elliott 1(512)837-1096 pelli...@blackpatchpanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117 signature.asc Description: This is a digitally signed message part.
Re: How do I add support for python3 to my package?
Hi Paul (2012.04.18_10:09:30_+0200) I am not a expert python packager. I am dubious about a bunch of cargo cult packagers all writing seperate but similar debian/rules complications. Indeed, it's messy and far from ideal. Why can not some expert that really know what she is doing write the neccessary infrastructure so that one could write That was: http://wiki.debian.org/SummerOfCode2011/PythonMultibuild Unfortunately, it stalled. But Piotr is intending to finish it, last I heard. SR -- Stefano Rivera http://tumbleweed.org.za/ H: +27 21 461 1230 C: +27 72 419 8559 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120418083240.gs2...@bach.rivera.co.za
Re: How do I add support for python3 to my package?
[Paul Elliott, 2012-04-18] I am not a expert python packager. I am dubious about a bunch of cargo cult packagers all writing seperate but similar debian/rules complications. It seems like one is creating a lot of debugging/maintainance problems. Why can not some expert that really know what she is doing write the neccessary infrastructure so that one could write %: dh $@ --with python2-and-python3 --with should not really be used for build systems, there's --buildsystem... anyway, please wait a little bit longer, I plan to work on it really soon now (I want to have it in Wheezy so I have a month or so to add it to python3-defaults) -- 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 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120418084601.gi3...@piotro.eu
Re: How do I add support for python3 to my package?
On Apr 18, 2012, at 03:09 AM, Paul Elliott wrote: I am not a expert python packager. I am dubious about a bunch of cargo cult packagers all writing seperate but similar debian/rules complications. That's why I wrote the style guide; hopefully at least we'll converge on one set of (well-documented!) cargo. :) It seems like one is creating a lot of debugging/maintainance problems. Why can not some expert that really know what she is doing write the neccessary infrastructure so that one could write %: dh $@ --with python2-and-python3 I am not an expert and not particularly interested in joining a cargo cult. I think that would be a better way to encourage python3 extensions. As Piotr and Stefano pointed out, multibuild will make many things better. Still, IMHO we should not wait for multibuild to start adding Python 3 support to Debian packages. If upstream supports Python 3, I would really love to have that available in Debian asap. Cheers, -Barry signature.asc Description: PGP signature
Re: How do I add support for python3 to my package?
On Wednesday, April 18, 2012 10:12:24 AM Barry Warsaw wrote: On Apr 18, 2012, at 03:09 AM, Paul Elliott wrote: I am not a expert python packager. I am dubious about a bunch of cargo cult packagers all writing seperate but similar debian/rules complications. That's why I wrote the style guide; hopefully at least we'll converge on one set of (well-documented!) cargo. :) It seems like one is creating a lot of debugging/maintainance problems. Why can not some expert that really know what she is doing write the neccessary infrastructure so that one could write %: dh $@ --with python2-and-python3 I am not an expert and not particularly interested in joining a cargo cult. I think that would be a better way to encourage python3 extensions. As Piotr and Stefano pointed out, multibuild will make many things better. Still, IMHO we should not wait for multibuild to start adding Python 3 support to Debian packages. If upstream supports Python 3, I would really love to have that available in Debian asap. Cheers, -Barry Well for an interim solution, what is wrong with writting a completely seperate source package for the python 3 version, with the intent to collapse it into the python2 version when tools become available? That way I don't have to join a cargo cult. -- Paul Elliott 1(512)837-1096 pelli...@blackpatchpanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117 signature.asc Description: This is a digitally signed message part.
Re: How do I add support for python3 to my package?
On Wednesday, April 18, 2012 10:35:04 AM Paul Elliott wrote: On Wednesday, April 18, 2012 10:12:24 AM Barry Warsaw wrote: On Apr 18, 2012, at 03:09 AM, Paul Elliott wrote: I am not a expert python packager. I am dubious about a bunch of cargo cult packagers all writing seperate but similar debian/rules complications. That's why I wrote the style guide; hopefully at least we'll converge on one set of (well-documented!) cargo. :) It seems like one is creating a lot of debugging/maintainance problems. Why can not some expert that really know what she is doing write the neccessary infrastructure so that one could write %: dh $@ --with python2-and-python3 I am not an expert and not particularly interested in joining a cargo cult. I think that would be a better way to encourage python3 extensions. As Piotr and Stefano pointed out, multibuild will make many things better. Still, IMHO we should not wait for multibuild to start adding Python 3 support to Debian packages. If upstream supports Python 3, I would really love to have that available in Debian asap. Cheers, -Barry Well for an interim solution, what is wrong with writting a completely seperate source package for the python 3 version, with the intent to collapse it into the python2 version when tools become available? That way I don't have to join a cargo cult. Alternately you could invest a little time in understanding what Barry's written up and build both sets of binaries from one source. This is the usual method. A separate source package doesn't make it any easier as it would still have to build for python3. Scott K -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/31795822.DETZSrihNh@scott-latitude-e6320
Re: How do I add support for python3 to my package?
On Wednesday, April 18, 2012 02:35:20 PM Paul Elliott wrote: On Wednesday, April 18, 2012 10:49:34 AM Scott Kitterman wrote: Alternately you could invest a little time in understanding what Barry's written up and build both sets of binaries from one source. This is the usual method. The problem is not understanding. It is a problem of style. Let us take one snippet python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb That is the usual way we install in March 2012. But the usual way we install is a moving target; It will change. I don't want to codify the usual way we install in March 2012 and then maintain that moving target as it moves. It's extremely unlikely to change anytime soon. I want to write code that means install in the usual way and let the code that implements that concept be maintained by someone smarter than me. That would be better, but such code isn't available yet, so your choices are do it by hand or wait. It's your choice, but I don't think it's so bad to go ahead. It is not good design to have a bunch moving targets all tracked by multiple packagers with various abilities and attention spans. The design is stable. What we don't have is a tool set that hides it from you. There is no chance before Wheezy releases and probably not for long after that that the existing choices will quit working or suddenly be wrong. This is not criticism of Barry; He has written excellent documentation on how to join the cargo cult. I was confused by assuming you knew what the phrase cargo cult meant. If you understand Barry's documentation, you aren't cargo culting the scripts. http://en.wikipedia.org/wiki/Cargo_cult_programming I am saying that we ought to find ways of not joining cargo cults. I don't think anyone is suggesting you actually do that. It is not about me or my level of understanding. Every line of code I write has to be maintained by somebody. Eventually, by somebody other than me; I am not going to live forever. Therefore, I resist writting lines of code. Then you can wait until multibuild is done if you prefer. A separate source package doesn't make it any easier as it would still have to build for python3. When I build for python2 alone I don't have to override dh_auto_build or dh_auto_install. I assume the same would be true if building for python3 alone. It is only when I want both in the same source package that I need these complicated overrides that create moving targets. No. You'd need overrides for a python3 only source package as well. The fundamental problem is debhelper doesn't know about building for python3. That doesn't change no matter how many source packages you split it up into. Scott K -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/2905556.ZJMP4yLkxT@scott-latitude-e6320
Re: How do I add support for python3 to my package?
On Wednesday, April 18, 2012 02:46:33 PM Scott Kitterman wrote: No. You'd need overrides for a python3 only source package as well. The fundamental problem is debhelper doesn't know about building for python3. That doesn't change no matter how many source packages you split it up into. Scott K I think you have just put your finger on another problem then. Nobody thinks python3 is important enough to have a debhelper infrastructure? My upstream tells me he does not know of any python3 programs using his module. Maybe I should delay python3 support then. -- Paul Elliott 1(512)837-1096 pelli...@blackpatchpanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117 signature.asc Description: This is a digitally signed message part.
Re: How do I add support for python3 to my package?
On Wednesday, April 18, 2012 03:09:35 PM Paul Elliott wrote: On Wednesday, April 18, 2012 02:46:33 PM Scott Kitterman wrote: No. You'd need overrides for a python3 only source package as well. The fundamental problem is debhelper doesn't know about building for python3. That doesn't change no matter how many source packages you split it up into. Scott K I think you have just put your finger on another problem then. Nobody thinks python3 is important enough to have a debhelper infrastructure? My upstream tells me he does not know of any python3 programs using his module. Maybe I should delay python3 support then. Your call. It's a chicken/egg problem. If Python 3 modules aren't provided, application developers won't use them. If application developers don't use Python 3 modules, people don't worry about packaging them. It's not very hard to support, so I would recommend doing it and help move things forward. The work to properly support Python 3 is in progress, it just isn't done yet. Debian is a volunteer project and sometimes (as in this case) people don't have as much time as they had anticipated and things take longer. We all agree it's important. Scott K -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1862368.sMrzQEgZva@scott-latitude-e6320
Re: How do I add support for python3 to my package?
On Apr 18, 2012, at 03:09 PM, Paul Elliott wrote: Nobody thinks python3 is important enough to have a debhelper infrastructure? I wouldn't say that. I'd say that the higher level tools are simply lagging behind demand. The low-level tools are available and won't significantly change. As Scott says, all that will change is that the higher level tools will come along and hide some of the lower level stuff from you. If you use the lower level tools today, nothing will break when the higher level tools are ready. When they are, and you decide to adopt them, you'll make one change, which will satisfyingly be to remove code (and I don't say that sarcastically :). But you could also decide to leave things just the way they are, since nothing will be broken. My upstream tells me he does not know of any python3 programs using his module. It's a chicken-and-egg problem. In order to increase the momentum toward Python 3, we need to port things from the bottom up. Higher level libraries can't port until the ones they depend on are ported. Applications can't port until all their dependencies are ported. Most users and developers get most of their packages from their distro, so the upstream's judge of popularity isn't always sufficient to judge the pent up demand. Maybe I should delay python3 support then. IMHO, no you shouldn't delay. The path is clear, and easy, and you don't risk doing busy work that you'll just have to undo later. There's no reason not support Python 3 in your package, and every reason to do it. Cheers, -Barry signature.asc Description: PGP signature
Re: How do I add support for python3 to my package?
Hi Paul, On Apr 12, 2012, at 02:09 AM, Paul Elliott wrote: A recent review of my package asked me to consider making a python3 version. Excellent! One more down the road to Python 3 world domination. :) But the response below says that is difficult. It is several months old, has this changed? I think it's not so hard, and you should definitely do it. It's true that the tools need to catch up to Python 3, but I think most packages can be adapted to include python3-* versions without too much trouble. You might find this wiki page helpful: http://wiki.debian.org/Python/LibraryStyleGuide The other problem is that the package is an extension and there is currently no python3 program to test it. Should packagers create a python3 extension even if there is no way to test it? It might be a chicken and egg problem. I'm not sure what you mean by no python3 program to test it. You can and should create the Python 3 extension modules. `apt-get install python3` should do the trick, right? Cheers, -Barry signature.asc Description: PGP signature
Re: How do I add support for python3 to my package?
On Thursday, April 12, 2012 08:30:41 AM Barry Warsaw wrote: Hi Paul, I'm not sure what you mean by no python3 program to test it. You can and should create the Python 3 extension modules. `apt-get install python3` should do the trick, right? I mean that I have python 2 programs that use this extension module. So I can check that the python 2 extension works. But I don't have any python 3 programs that use the python3 extension module. Under these conditions should I create a python 3 extension, without knowing if it works? Cheers, -Barry -- Paul Elliott 1(512)837-1096 pelli...@blackpatchpanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117 signature.asc Description: This is a digitally signed message part.
Re: How do I add support for python3 to my package?
On Apr 12, 2012, at 10:09 AM, Paul Elliott wrote: On Thursday, April 12, 2012 08:30:41 AM Barry Warsaw wrote: Hi Paul, I'm not sure what you mean by no python3 program to test it. You can and should create the Python 3 extension modules. `apt-get install python3` should do the trick, right? I mean that I have python 2 programs that use this extension module. So I can check that the python 2 extension works. But I don't have any python 3 programs that use the python3 extension module. Under these conditions should I create a python 3 extension, without knowing if it works? Does the package itself have a test suite? If so, try enabling that for both Python 2 and 3 (using the hints in that wiki page). If not, then as long as the extension imports, I think it's worth building. You can't get bug reports on broken modules if the module doesn't exist. :) -Barry signature.asc Description: PGP signature
Re: How do I add support for python3 to my package?
Hi Paul (2011.11.17_12:05:46_+0200) I created a package with py2dsc. After some tweeks, it works correctly. The upstream says package also works with python 3. How do I alter my source package to also produce a python 3 version? That's currently non-trivial, and certainly not in the realm of things py2dsc can safely do, yet. Basically, you'd need to override all the dh_auto_* rules to loop over all supported python2 and python3 versions. If you don't need the python3 version, yet, I'd ignore this until the tools improve. SR -- Stefano Rivera http://tumbleweed.org.za/ H: +27 21 465 6908 C: +27 72 419 8559 UCT: x3127 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/2017115520.go9...@bach.rivera.co.za
Re: How do I add support for python3 to my package?
On Thu, Nov 17, 2011 at 7:55 PM, Stefano Rivera wrote: Hi Paul (2011.11.17_12:05:46_+0200) I created a package with py2dsc. After some tweeks, it works correctly. The upstream says package also works with python 3. How do I alter my source package to also produce a python 3 version? That's currently non-trivial, and certainly not in the realm of things py2dsc can safely do, yet. Basically, you'd need to override all the dh_auto_* rules to loop over all supported python2 and python3 versions. If you don't need the python3 version, yet, I'd ignore this until the tools improve. Would dh --with python2,python3 not work? I've seen that in some packages IIRC. -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/caktje6hugdalwehd7m4ujkjqu8yehtyybho3r7x3hct0soq...@mail.gmail.com
Re: How do I add support for python3 to my package?
Hi Paul (2011.11.17_15:17:07_+0200) Would dh --with python2,python3 not work? I've seen that in some packages IIRC. No. That'll run dh_python2 dh_python3, but do nothing to build the module for python3. SR -- Stefano Rivera http://tumbleweed.org.za/ H: +27 21 465 6908 C: +27 72 419 8559 UCT: x3127 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/2017143244.gp9...@bach.rivera.co.za
Re: How do I add support for python3 to my package?
On Nov 17, 2011, at 01:55 PM, Stefano Rivera wrote: If you don't need the python3 version, yet, I'd ignore this until the tools improve. Piotr was working on a rewrite of python-multibuild at UDS in Orlando. I haven't heard any status on that. Piotr, how's that going? Do you have anything ready to test? -Barry -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/2017095945.23f01...@limelight.wooz.org
Re: How do I add support for python3 to my package?
[Barry Warsaw, 2011-11-17] On Nov 17, 2011, at 01:55 PM, Stefano Rivera wrote: If you don't need the python3 version, yet, I'd ignore this until the tools improve. Piotr was working on a rewrite of python-multibuild at UDS in Orlando. I haven't heard any status on that. Piotr, how's that going? Do you have anything ready to test? not yet, sorry (busy with real life) -- 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 -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/2017152032.gc17...@piotro.eu