Source: pyrex
Version: 0.9.7.2-0.1
Tags: patch

Under Python 2.6, it's necessary to pass --install-layout=deb to
setup.py in order to keep it from installing into /usr/local. The
package will otherwise FTBFS under Python 2.6.

Attached is the very simple patch.

--- pyrex-0.9.7.2/debian/rules
+++ pyrex-0.9.7.2/debian/rules
@@ -49,7 +49,7 @@
 
        # fix executable file : headers, names 
        # $$file -> python$$version-$$file
-       $(PYTHON) setup.py install --root=$(CURDIR)/debian/python-pyrex 
--no-compile
+       $(PYTHON) setup.py install --root=$(CURDIR)/debian/python-pyrex 
--no-compile --install-layout=deb
        for python in $(PYVERS); do \
                sed 's/#VERS#/'$$python'/g' debian/pythonX.Y-pyrexc > 
debian/python-pyrex/usr/bin/python$$python-pyrexc ; \
                chmod 755 debian/python-pyrex/usr/bin/python$$python-pyrexc ; \

Reply via email to