Bug#708138: lintian: python-script-but-no-python-dep should accept python3.3
* Osamu Aoki <osamu@debian.org>, 2013-05-15, 21:25:
I am a bit sick today ... but I got around fixing issues in VCS and
build again:
These warnings should have given you a clue about what's wrong:
dpkg-gencontrol: warning: Depends field of package debmake: unknown substitution variable ${python:Depends}
dpkg-gencontrol: warning: package debmake: unused substitution variable ${python3:Depends}
So a wrong subtvar name is a reason the package doesn't have dependency
on python3.3, despite #!/usr/bin/python3.3 shebang.
Now, the more interesting question is: why the shebang is versioned in
the first place? Let's see:
PY3REQUESTED := $(shell py3versions -r)
PY3DEFAULT := $(shell py3versions -d)
PYTHON3 := $(filter-out $(PY3DEFAULT),$(PY3REQUESTED)) python3
Currently PYTHON3 evaluates to "python3.3 python3".
override_dh_auto_install:
set -ex; for python in $(PYTHON3); do \
$$python setup.py install \
--root=debian/debmake\
--install-layout=deb; \
done
setup.py install won't overwrite existing files (unless you use
--force), so the script created by python3.3 ends up in the binary
package.
So, as I said previously: it's a bug in your package. Please fix it.
--
Jakub Wilk
Reply to: