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

dh_python3: how to use .pydist file?



Hello,

I'm trying to get dh_python to generate versioned dependencies for the
s3ql package (available in the python-apps SVN repository).

I have created a file debian/s3ql.pydist with the contents:

$ cat debian/s3ql.pydist 
dugong python3-dugong; PEP386

The requirements in setup.py are:

$ cat src/s3ql.egg-info/requires.txt 
apsw >= 3.7.0
pycrypto
requests
defusedxml
dugong >= 3.4
llfuse >= 0.39

When creating the s3ql package, I get the output:

[...]
  dh_python3
D: dh_python3 dh_python3:149: version: 1.20141111-2
D: dh_python3 dh_python3:150: argv: ['/usr/bin/dh_python3']
D: dh_python3 dh_python3:151: options: {'depends': None, 'suggests': None, 'skip_private': False, 'no_ext_rename': False, 'recommends': None, 'package': None, 'verbose': False, 'no_shebang_rewrite': False, 'guess_deps': True, 'no_package': None, 'shebang': None, 'vrange': None, 'clean_dbg_pkg': True, 'regexpr': None, 'compile_all': False, 'ignore_shebangs': False, 'arch': None, 'O': None, 'requires': None}
D: dh_python3 dh_python3:152: args: []
D: dh_python3 dh_python3:154: supported Python versions: 3.4 (default=3.4)
D: dh_python3 debhelper:98: source=s3ql, binary packages=['s3ql', 's3ql-dbg']
D: dh_python3 dh_python3:171: processing package s3ql...
I: dh_python3 tools:100: replacing shebang in debian/s3ql/usr/lib/s3ql/benchmark.py
  [...]
D: dh_python3 fs:220: package s3ql details = {'public_vers': set(), 'ext_vers': set(), 'nsp.txt': set(), 'private_dirs': {'/usr/lib/s3ql': {'compile': True, 'ext_vers': {Version('3.4')}, 'shebangs': {/usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3}}}, 'requires.txt': {'debian/s3ql/usr/lib/s3ql/s3ql-2.13.egg-info/requires.txt'}, 'egg-info': set(), 'compile': False, 'shebangs': {/usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3, /usr/bin/python3}, 'ext_no_version': set()}
D: dh_python3 depends:107: generating dependencies for package s3ql
D: dh_python3 pydist:121: trying to find dependency for apsw >= 3.7.0 (python=None)
D: dh_python3 pydist:121: trying to find dependency for pycrypto (python=None)
D: dh_python3 pydist:121: trying to find dependency for requests (python=None)
D: dh_python3 pydist:121: trying to find dependency for defusedxml (python=None)
D: dh_python3 pydist:121: trying to find dependency for dugong >= 3.4 (python=None)
D: dh_python3 pydist:121: trying to find dependency for llfuse >= 0.39 (python=None)
D: dh_python3 depends:242: D={'python3:any (>= 3.3.2-2~)', 'python3-requests', 'python3-defusedxml', 'python3-crypto', 'python3-llfuse', 'python3-apsw', 'python3 (>= 3.4~)', 'python3', 'python3 (<< 3.5)', 'python3-dugong'}; R=[]; S=[]; E=[], B=[]; RT=[('/usr/lib/s3ql', '-V 3.4')]
D: dh_python3 dh_python3:171: processing package s3ql-dbg...
[...]

Not surprisingly, the binary package then ends up without the versioned
dependency, and also without the s3ql.pydist file in 
/usr/share/dh-python/dist/cpython3/ (as README.PyDist promised).

What am I doing wrong?

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«


Reply to: