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

Re: Mysterious double python dependency



* Nikolaus Rath <Nikolaus@rath.org>, 2011-12-30, 10:14:
When creating the S3QL package, I somehow get a dependency on both python and python2.7:

Depends: python (>= 2.6.6-7~), [...], python2.7

They were both generated by dh_python2. And they are both needed to run the postinst script:

1) "python (>= 2.6.6-7~)" is needed because /usr/bin/pycompile is in the "python" package.

2) s3ql's private modules must be used only with python2.7 (since /usr/lib/s3ql/s3ql/_deltadump.so was built for 2.7). Naturally, you need python2.7 to byte-compile for 2.7.

Does it make sense now?

No, of course it doesn't. All scripts that would use the _deltadump extension have #!/usr/bin/python shebangs, so there's no guarantee they'll actually be run with python2.7. The dependency should have been "python (>= 2.7), python (<< 2.8)", as per Python Policy 3.1.1.

--
Jakub Wilk


Reply to: