On Saturday 04 Sep 2010 00:15:36 Jakub Wilk wrote:
> /usr/bin/pytags{,fs} have #!/usr/bin/python2.5 shebangs. Please make
> them unversioned.
Hi Jakub,
My rules looks like this:
build-python%:
dh_testdir
python$* setup.py build
touch $@
And the upstream setup.py file is:
class build_version_file(build_py):
def initialize_options(self):
build_py.initialize_options(self)
self.version = None
self.version_file = None
def finalize_options(self):
build_py.finalize_options(self)
self.packages = self.distribution.packages
self.py_modules = [self.distribution.version_module]
self.version = self.distribution.get_version()
self.version_file = self.distribution.version_file
def check_module(self, *args, **kwargs):
pass
def build_modules(self, *args, **kwargs):
log.info("creating version file '%s'" % self.version_file)
if not self.dry_run:
f = open(self.version_file, 'w')
f.write('version = %s\n' % repr(self.version))
f.close()
build_py.build_modules(self, *args, **kwargs)
If I just call python interpreter to build, the shebang used is
#!/usr/bin/python whereas the way it is defined in the rules, it calls
available python version. IIRC, we did this to support multiple version.
Ritesh
--
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
Attachment:
signature.asc
Description: This is a digitally signed message part.