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

Bug#708138: lintian: python-script-but-no-python-dep should accept python3.3



* Osamu Aoki <osamu@debian.org>, 2013-05-13, 22:14:
This may be somewhat similar to bug#673734.

Indeed.

I had script started as:
#!/usr/bin/python3

The python3 setup.py with dh --with python3 seems to convert this to:
#! /usr/bin/python3.3
(Please note space.)

I guess, it substitute with the current default python version 3.3 chosen by the python3 package.

FWIW, no, 3.3 is not the default version in Debian.

If you showed me the source package, I'd try to explain why that happened. (I tried to use links from Vcs-* fields for the package that is in NEW, but they are broken.)

Anyway, I get lintian ERROR with somewhat strange texts with my package debmake in NEW.

For dh --with ..., we should use python2 for python 2 series and python3 for python 3 series. dh_pysupport or dh_pycentral are history.

When emitting this tag, Lintian doesn't care about Python helpers. It just looks at shebangs and dependencies.

I have "Depends: python3" in binary and get the following.

You need to depend on "python3.3", or fix the shebang. Please take a look at this part of tag description, replacing "2.6" with "3.3":
If a script uses #!/usr/bin/python2.6, the package needs a dependency on python2.6. A dependency on python (>= 2.6) is not correct, since later versions of Python may not provide the /usr/bin/python2.6 binary.

--
Jakub Wilk


Reply to: