[Distutils] Inconsistent package build with stdeb?

Oz Tiram oz.tiram at gmail.com
Wed Jul 1 11:00:38 CEST 2015


Hi Everyone,

I am trying to build a Debian package a Python library that includes shared
object from boost.

When building on machine the files and the proper links are included, here
is an example:

I am building the package like this:

     (machine1) $  python setup.py --command-packages=stdeb.command
bdist_deb

...

Now I check that the symbolic links and the objects are still there:

     (machine1) $ dpkg -c
deb_dist/python-dataextract_8200.14.0819.2015-1_all.deb | grep date
     -rw-r--r-- root/root     95000 2014-08-20 05:20
./usr/share/pyshared/dataextract/lib/libboost_date_time.so.1.53.0
     rwxrwxrwx root/root         0 2015-07-01 10:46
./usr/lib/python2.7/dist-packages/dataextract/lib/libboost_date_time.so ->
libboost_date_time.so.1.53.0
     rwxrwxrwx root/root         0 2015-07-01 10:46
./usr/lib/python2.7/dist-packages/dataextract/lib/libboost_date_time.so.1.53.0
->
../../../../../share/pyshared/dataextract/lib/libboost_date_time.so.1.53.0
     rwxrwxrwx root/root         0 2015-07-01 10:46
./usr/lib/pyshared/python2.7/dataextract/lib/libboost_date_time.so ->
../../../../python2.7/dist-packages/dataextract/lib/libboost_date_time.so

Now one the other machine with exact same version of python-stdeb I issue
the same build command, with a different result:


   (machine2) $ dpkg -c
deb_dist/python-dataextract_8200.14.0819.2015-1_all.deb | grep date
   -rw-r--r-- root/root     95000 2014-08-20 05:20
./usr/lib/python2.7/dist-packages/dataextract/lib/libboost_date_time.so
   rwxrwxrwx root/root         0 2015-07-01 10:32
./usr/lib/pyshared/python2.7/dataextract/lib/libboost_date_time.so ->
../../../../python2.7/dist-packages/dataextract/lib/libboost_date_time.so



As you can see the versioned files `libboost_date_time.so.1.53.0` are
missing and I am quite puzzled why.
I must also say that, this machine is the exception. I have other machines
where the package builds properly.

Can someone please provide a clue?


Thanks,
Oz

---

Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150701/d45e2462/attachment.html>


More information about the Distutils-SIG mailing list