Re: Packaging with Python Disutils
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/21/2013 12:24 AM, Barry Warsaw wrote: > On Nov 20, 2013, at 09:44 PM, Ross Gammon wrote: > >> My upstream are maintaining two parallel versions at the moment, >> and I am trying to prepare a package for the experimental >> version. They have enabled Python 3, upgraded to GTK3 and changed >> to distutils. > > Hi Ross, > > This might help. It's been updated to the most recent > recommendations from the Debian Python team. > > https://wiki.debian.org/Python/LibraryStyleGuide > Thanks Barry. I had actually tried the pybuild approach first, but it failed to build on the dh_auto_test, so I had tried to go back to basics and followed recommendations from upstream. > > Cheers, -Barry > But now I am back with pybuild, and the ERROR picked up by a unit test. The traceback shows a resource path error, but on a file that is not meant for unit testing, but has the unfortunate name of testcasegenerator.py :-) It turns out that upstream's unit testing has been recently resurrected and is a work in progress. They do not yet support the standard unittest discovery, so I have temporarily overridden auto_test to run 'python setup.py test' which they have set up to point to the right tests. Regards, Ross -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSj9tUAAoJEFP+e72miRD8PU4P/R5lizyoY4yPc1qSesz4oe/P VkP8EzRGMVKRhKTtsEKdRZHKyWDPKlyA1SB6pnAhKSBCG2EQt9KmT8JcoaDje78a PX18R7/MfsS6Z6paXU68FUuFn4LniWAfTJJxvuNLFDGVP3SC+pPN7HWbabEPIPf7 mJzgxpLVSSnDvcqp0yVPrA/C6HtA0DUfeonT+q4f7gRS6RIDZ6PSa1RVLS9hD0+P WW5jvKgeh9cslxC36AjLNUOuBH+3iAkZsbcKCcj5+ozPmwUgaLjtetcOGnBu6IXA JmOC2x5GUQATg3IntwdWlfH3vpwGYVG1Dci/7VvTS7JJv/ubrgnhTXC3Weglz802 tsFmnQ8WZVECbZQiQrHdoQSCsM3vTSZYPYdE7+3+S8VYHwkVgl5Aq2cbhlWOFBek 2hsZUR+4bOhS2SLsXJeIctml9ZyxPGswe+qvykM4xiK5U4cw9OvZrAw23pDopybZ xog7JG/us06wgfNLMe9QD8bK4pUgarEkq9ZLU9hk/xzgDTqYFTfh5JnYPxo4qy2K +gdE7SfD1yGabwJldWFP/HInaoopyc088gbK/4UpGcZ8DIGZeNmqzgyM83PdCGt5 c9luTh0V499wmwOF8mWc+Y1oIxdtqu5giJjZASkiZ5SGrj3bv9v+1odI1Oax+3fD 9dL4f5Al9ou2LJuIJg7/ =caKT -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/528fdb5d.9090...@mail.dk
Re: Packaging with Python Disutils
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/21/2013 09:32 AM, Jakub Wilk wrote: > * Ross Gammon , 2013-11-20, 21:44: >> override_dh_auto_install: python setup.py install --root >> --install-layout=deb > > --root requires an argument, and you provided a bogus one. > Perfect - thanks Jakub. python setup.py install --root=debian/gramps --install-layout=deb That fixed it - working in Python 2. Now to switch to pybuild and see if we can build it for Python 3. Regards, Ross -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSj4FUAAoJEFP+e72miRD8X8cP/132SZUbDcHLqJE+AI5paVjY /vZIM4fWQ2mC6/AdDAnMvIFeqxyC9VjgRZ8Z0ES3Sm1NeySGafS5wSSqVwnUJsWl EJROS0XJPYE97c6Z8fxAjOyjos448cnzCff7aSuSIFR72aH9ut8bm5ig0+SoLXil mdd9rVVMFKA+2XgEE6tRXcPcebaD5mXxxqASWmtbLqUtFIC0syamj/DJgYDCoAGs FqfUJc7WUwlmODQhTnNAqfh8eUEn53KVVTxDxUdXGn/YA3z4aQIYNnfIrH688JwC ZZDshoC1Vr/FGdo284RvqRpdstd3/gyiOEDXc29RBL7jofXsK0CFjWT56CG/5HzW w0DEYiOVPXh9pslgcXQRJJEVqhLI6l2jruGy/rph5/3HJau22jdXJubR//NfMaG7 /yXVCqJwUO+01MUSP5uw4yDnSnmK6ymznUbqiqZ7NYLuYCmO7NEtDUFYUR8V7nLh p6u3Mp4ZZgcAdtPHBeiTm88EpEHX3Vy4phFieT0xi8iaIoDuNNjEd8NdG+1uYdaO 9dJFISnsl8+fvE3sh4zOw6vx9cNpSIgwOHboFJSBzrZz0LVPGgfRypm0ZjKzL6bO S8xQ+o7ak7gMoVzxad4PM3zZYdB4oZQiTItKL25FWNR8/Ld1Yp3kaBfqTnge9V6C N9fCFEk0tXSmTvnzLXaV =yiv5 -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/528f819c.3090...@mail.dk
Re: Packaging with Python Disutils
* Ross Gammon , 2013-11-20, 21:44: override_dh_auto_install: python setup.py install --root --install-layout=deb --root requires an argument, and you provided a bogus one. -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20131121083201.ga7...@jwilk.net
Re: Packaging with Python Disutils
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Nov 20, 2013, at 09:44 PM, Ross Gammon wrote: >This has been frustrating me for a few days now and I am hoping >someone can help with some inspiration :-) > >My upstream are maintaining two parallel versions at the moment, and I >am trying to prepare a package for the experimental version. They have >enabled Python 3, upgraded to GTK3 and changed to distutils. Hi Ross, This might help. It's been updated to the most recent recommendations from the Debian Python team. https://wiki.debian.org/Python/LibraryStyleGuide It uses pybuild and it makes life a lot easier for setuptools-based projects, especially bilingual ones. (Click through the historical version if you want to see the pre-pybuild recommendations.) Cheers, - -Barry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAEBCAAGBQJSjUSjAAoJEBJutWOnSwa/3cMP+QFMtoPAg1CSrBBZMClRPwSf SYdOGV9TtV/YqU+nXT3oPv4S0g2IWfBqxEbAweEP0vwSTJ0Ao5+8a/0kT8IsRZkW AUCT8pmPYKpMtVEQx5x0i+2zYT0uLhJAQMtu/eXQxxcL9FyXqIHRpo6v8hqCqiwd GnQBqIxyE8Z/pK5YBcU4sNxS7sv70N/WpcO7Kzv3fLbmLhDwEH8ea22XjEOG81j1 PUlkLxbsWnTkjztlvPIjE/g9TM2NFO/bxgypMgwpN0E+2iCz8doMgzW+VJ9G6GOI zaSkwtXOH+jD41A8u76sh4Lo1Ao+MQy/6MLs7hbijL3r4uR4917dmlT/cmNNz3I9 CyMMzVyHHFMV1+2RG7eaAeNFTWejSMvx8pLLLaqSi9REYV2wM48RqviC3CJEx0q4 DArAUp43Yw3HRwnCygOQZEBH7j4BNtdZDyVLr4kyNDYU93dQ1v2vMLrYAb4jDqRV AHpit25lEDb+tyt8XxEM2tGEbN+KWNdzo7+YD53H9d1dGmkXT0n2gjUxQQnEu6ve iBtcm9uQk7DLt+9r0c63NFoUCrAuve81J+5mxyzfxphxuKcabLZs0fNgtzdKRKOT 8iD+tQLBGdZYCYFrjXGMPKj1sy58HwQOWFQe6y1OIaYeXy/f40WW3jMg6EOmXeQ3 Mw+56NCtBxAbBmHS4x3Y =7SWg -END PGP SIGNATURE-
Packaging with Python Disutils
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear Mentors, This has been frustrating me for a few days now and I am hoping someone can help with some inspiration :-) My upstream are maintaining two parallel versions at the moment, and I am trying to prepare a package for the experimental version. They have enabled Python 3, upgraded to GTK3 and changed to distutils. I am starting out trying to get it building with Python 2 first. I can build and install with python setup.py, python setup.py install and the program runs fine. But when built with gbp (gbp buildpackage - --git-pristine-tar --git-export-dir=../build-area/), only some of the files are installed. The binary is correctly installed into /usr/local/bin. Documentation and other things are installed correctly (e.g. docs in /usr/local/share/doc/gramps). But nothing is installed into /usr/local/lib/python2.7/dist-packages. Here is the rules file I have at the moment: %: dh $@ --with python2 override_dh_auto_install: python setup.py install --root --install-layout=deb override_dh_auto_build: This is even though I see the following output with the verbose option during the build: ... creating build/lib.linux-x86_64-2.7 ... copying gramps/grampsapp.py -> build/lib.linux-x86_64-2.7/gramps ... creating --install-layout=deb/usr/local/lib/python2.7/dist-packages/gramps ... copying build/lib.linux-x86_64-2.7/gramps/grampsapp.py -> - --install-layout=deb/usr/local/lib/python2.7/dist-packages/gramps Any clues? I can temporarily upload to mentors.d.o if someone wants to look at it. Regards, Ross -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSjR8HAAoJEFP+e72miRD8ZOcP/10Suc7kN2BQfoHczO5AbyGS F50TYdZuWJaYBd1en1+O69WQreR58SBxhG/9gABVrbIcDNCfCmnKlR1kNxC6z1OC 3sCZWygPl3BLqgKR6EgmPuuT4+aygGKYItU0/7yjAUx1RsXXGHAUKouX3nPOUDAZ 7UNbyHyT2c6AEAZKVwj7yUARJypAQkv/Yl+Z+8QifffjHiUeO9V9egVqvjpWZ3sG N25NK26ZiLRZT3DlP/E+7g3tLbuH+0VC6n0VozsuS+EBX3DP3ggjjhBddOBuGAsO oERqPMQw6QyMTl5RdTiEZ8RMbzCLt+knoUrqoNqqg8U+5emG3okGjyu9B9oAnTsE AS7/I/eizvztfQHgTGXxZ/B6u1EwmGkHDC7pXIUNya0iVMi09d5cVpakRxKL7OK8 GBaHAs/gHA/DZ6uyAxnQBEhNNYw+Okytk61ZK89l80E6f51mW5qTk+VTBTNX7pEu W3B9YwagCCwiPwbnm8mXpg1rdrzOysl5/hsK+raGYrNkQo7wH94XleMfq8bEjX39 ciyllth7QqMnY42jE/QTUy0D9az+RnGFEau0BY19UyGcAwD5Ui/Q7fUtORFIuzst RhlMDqvO5fPEoO6eDwTLrCFI5PCc59HaZr+z2Y4nIz07T7bRacFiWhiLTCKz5xea uhkzRsUPsmkg4tfAAL8g =41bJ -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/528d1f11.5090...@mail.dk