[Debian-med-packaging] Bug#543236: Make package ready for python 2.6
Bhavani Shankar
bhavi at ubuntu.com
Sun Aug 23 13:05:14 UTC 2009
Package: python-biopython
Version: 1.51final-1
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch
Hello dear maintainer,
In Ubuntu, we've applied the attached patch to achieve the following:
* Python 2.6 transition.
We thought you might be interested in doing the same.
-- System Information:
Debian Release: lenny/sid
APT prefers hardy-updates
APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy-proposed'), (500, 'hardy')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
diff -u python-biopython-1.51final/debian/python-biopython.files python-biopython-1.51final/debian/python-biopython.files
--- python-biopython-1.51final/debian/python-biopython.files
+++ python-biopython-1.51final/debian/python-biopython.files
@@ -1 +1 @@
-usr/lib/python*/site-packages/Bio
+usr/lib/python*/*-packages/Bio
diff -u python-biopython-1.51final/debian/rules python-biopython-1.51final/debian/rules
--- python-biopython-1.51final/debian/rules
+++ python-biopython-1.51final/debian/rules
@@ -18,13 +18,13 @@
dh_testdir
dh_testroot
- yes | python$* setup.py install --root $(CURDIR)/debian/python$*-tmp
+ yes | python$* setup.py install --root $(CURDIR)/debian/python$*-tmp --install-layout=deb
# <bugfix>
- chmod 644 debian/python$*-tmp/usr/lib/python$*/site-packages/Bio/EUtils/DTDs/*dtd
- chmod 644 debian/python$*-tmp/usr/lib/python$*/site-packages/Bio/Entrez/DTDs/*dtd
+ chmod 644 debian/python$*-tmp/usr/lib/python$*/*-packages/Bio/EUtils/DTDs/*dtd
+ chmod 644 debian/python$*-tmp/usr/lib/python$*/*-packages/Bio/Entrez/DTDs/*dtd
- for i in `find ./debian/python$*-tmp/usr/lib/python$*/site-packages -name "*.py"`; do \
+ for i in `find ./debian/python$*-tmp/usr/lib/python$*/*-packages -name "*.py"`; do \
sed -ir "s/^#\!\/usr\/bin\/env python\(2\.[234]\)\?$$//" $$i; \
sed -ir "s/^#\![ ]*\/usr\/bin\/python[ ]*\(-OO\)\?\(-i\)\?$$//" $$i; \
$(RM) $$i\r; \
diff -u python-biopython-1.51final/debian/python-biopython-sql.files python-biopython-1.51final/debian/python-biopython-sql.files
--- python-biopython-1.51final/debian/python-biopython-sql.files
+++ python-biopython-1.51final/debian/python-biopython-sql.files
@@ -1 +1 @@
-usr/lib/python*/site-packages/BioSQL
+usr/lib/python*/*-packages/BioSQL
More information about the Debian-med-packaging
mailing list