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

Re: Program shebang line with specific ‘/usr/bin/pythonX.Y’ interpreter



On 10/10/2013 07:04 PM, Ben Finney wrote:
> Dmitry Shachnev <mitya57@gmail.com> writes:
> 
>> In your particular case, python3-coverage depends on 'python3 (<<
>> 3.4), python3 (>= 3.3)', so when it is installed /usr/bin/python3 will
>> be always a link to python3.3, so the shebang doesn't matter here. But
>> in general, I recommend people to use non-versioned shebangs in their
>> packages.
> 
> For dependencies, the ‘debian/control’ has:
> 
> =====
> …
> Package: python-coverage
> Depends:
>     ${python:Depends},
> …
> Package: python3-coverage
> Depends:
>     …
>     ${python3:Depends},
> …
> =====
> 
> The dependencies in the resulting binary packages are created by the
> Debhelper tools for Python.

Hi Ben (and others),

FYI, I'm currently working on the package. I'm having a hard time with
bzr, though... so I probably will send you a patch against the current
version. Just one thing that would help me a lot: could you please add
what I attached to the debian/rules to generate a dfsg orig file, run
it, and then put the generated content instead of what is currently in
the BZR repository? That's because currently, even if debian/changelog
says version 3.7, there's differences with upstream tarball which makes
FTBFS, so I can't work correctly on the packaging...

Then when done, I'll be able to test it more, and see if I can sponsor
it. I'll be very happy if we can tackle this one package which I need to
be ready for next week.

Cheers,

Thomas Goirand (zigo)

DEBVERS         ?= $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
VERSION         ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//')
NO_DFSG         ?= $(shell echo '$(VERSION)' | sed -e 's/\+dfsg\.[[:digit:]]*//')

.PHONY: get-orig-source
get-orig-source:
	rm -f coverage-$(NO_DFSG).tar.gz $(CURDIR)/../python-coverage_$(VERSION).tar.gz
	wget http://pypi.python.org/packages/source/c/coverage/coverage-$(NO_DFSG).tar.gz
	tar -xzf coverage-$(NO_DFSG).tar.gz
	rm coverage-$(NO_DFSG)/coverage/htmlfiles/jquery.min.js
	rm coverage-$(NO_DFSG)/coverage/htmlfiles/jquery.tablesorter.min.js
	rm coverage-$(NO_DFSG)/tests/farm/html/src/htmlcov/jquery-1.4.3.min.js
	rm coverage-$(NO_DFSG)/tests/farm/html/src/htmlcov/jquery.tablesorter.min.js
	rm coverage-$(NO_DFSG)/tests/qunit/jquery.tmpl.min.js
	mv coverage-$(NO_DFSG) python-coverage-$(VERSION)
	tar -czf $(CURDIR)/../python-coverage_$(VERSION).tar.gz python-coverage-$(VERSION)
	rm -r python-coverage-$(VERSION) rm -f coverage-$(NO_DFSG).tar.gz

Reply to: