[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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-----


Reply to: