Andrew Straw wrote: > setuptools doesn't modify the shebang in the script -- it constructs the > entire script when told to, at install time, on the basis of its > entry_points declaration and the version of python actually being run > (see get_script_header() in setuptools/commands/easy_install.py ). > Therefore order-of-python-running is important for setuptools script > installation, because the last one wins. So, the default python should > run last during the install stage.
In the mercurial package, I call sed to ensure a good shebang line: ================== override_dh_auto_install: $(PYVERS:%=install-python%) install-python%: build-python% python$* setup.py install --root $(CURDIR)/debian/tmp # Do not hardcode the python interpreter sed -i '1c#!/usr/bin/python' debian/tmp/usr/bin/hg ================== This setup can probably be adapted for packages needing it. Regards, Vincent -- Vincent Danjean GPG key ID 0x9D025E87 vdanj...@debian.org GPG key fingerprint: FC95 08A6 854D DB48 4B9A 8A94 0BF7 7867 9D02 5E87 Unofficial pacakges: http://moais.imag.fr/membres/vincent.danjean/deb.html APT repo: deb http://perso.debian.org/~vdanjean/debian unstable main -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org