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

Re: Dependencies with cType



* Mathieu Malaterre <mathieu.malaterre@gmail.com>, 2011-10-03, 21:11:
 [Please CC me as I am not subscribed]
[Done]

I am trying to package a python module which load the real C library using cType. I am using dh_python2 but I seem to be missing something as the dependencies is still not quite right.

$ apt-cache show python-openslide
...
Depends: python2.6 | python2.7, python (>= 2.6.6-7~), python (<< 2.8)

While looking at the source:

$ cat lowlevel.py
from ctypes import *
[...]
_lib = cdll.LoadLibrary('libopenslide.so.0')

dh_python2 doesn't read your source code, except maybe for the first line (looking for shebang). You need to add dependency on libopenslide0 manually.


BTW, I'm slightly disturbed by the fact, that so many people believe that a Python helper does code inspection (or maybe use some magical means...) to generate python:Depends. It seems to be a new phenomenon, I don't recall any questions like that a year ago or so.

--
Jakub Wilk


Reply to: