tags 547842 + patch
thanks

Hi!

Please find attached a patch to fix this bug. The package was
test-built against a custom made python-numpy in a Python 2.6 test
chroot.

HTH, and thanks.

Kumar
diff -Nru --exclude changelog --exclude postinst.old python-gnuplot-1.8/debian/rules python-gnuplot-1.8/debian/rules
--- python-gnuplot-1.8/debian/rules	2009-10-17 12:43:08.000000000 -0500
+++ python-gnuplot-1.8/debian/rules	2009-10-17 12:43:08.000000000 -0500
@@ -4,10 +4,12 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/python/python.mk
+
 p	:= python-gnuplot
 d	:= debian/$(p)
 PV	:= $(shell pyversions -vd)
-pylib	:= usr/lib/python$(PV)/site-packages
+pylib	:= usr/lib/python$(PV)/$(call py_sitename, $(PV))
 
 build:
 	python setup.py build
@@ -24,8 +26,8 @@
 
 	: # install it
 	dh_installdirs -i $(pylib)/Gnuplot usr/share/doc/$(p)
-	python setup.py install --prefix=$(d)/usr
-	-find $(d) -name '*.py[co]' | xargs rm -f
+	python setup.py install --prefix=$(d)/usr $(py_setup_install_args)
+	-find $(d) -name '*.py[co]' find $(d) -name '*.py[co]' | xargs rm -f
 
 	install -m 755 debian/datafile.py $(d)/$(pylib)/.
 	dh_installdocs -i \

Reply via email to