Package: python-pip
Version: 0.3.1-1
Severity: important
Tags: patch
User: [email protected]
Usertags: python2.6 ftbfs
Hello,
Starting from Python 2.6, the installation paths for distutils have
changed. /usr/local is now used by default.
When rebuilt against python-all{,-dev,-dbg} (and thus python2.6) from
Debian, your package FTBFS:
mv: cannot stat
`/dane/python2.6/build/python-pip/python-pip-0.3.1/debian/python-pip/usr/bin/pip':
No such file or directory
make: *** [install] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
The attached patch fixed is bug. However, please consider also
switching from python-central to python-support:
http://wiki.debian.org/DebianPython/central2support
--
Jakub Wilk
diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+-include /usr/share/python/python.mk
+
PYTHON_VERSIONS = $(shell pyversions -r debian/control)
CURRENT_PYTHON_VERSION = $(shell pyversions -d)
@@ -46,7 +48,7 @@
dh_installdirs
for python in $(PYTHON_VERSIONS); do \
- $$python setup.py install --root=$(CURDIR)/debian/python-pip; \
+ $$python setup.py install $(py_setup_install_args) --root=$(CURDIR)/debian/python-pip; \
mv $(CURDIR)/debian/python-pip/usr/bin/pip $(CURDIR)/debian/python-pip/usr/bin/pip-$$python; \
done
sed 's_^#\!/usr/bin/$(CURRENT_PYTHON_VERSION)_#\!/usr/bin/python_' < $(CURDIR)/debian/python-pip/usr/bin/pip-$(CURRENT_PYTHON_VERSION) > $(CURDIR)/debian/python-pip/usr/bin/pip