[Python-modules-commits] r31701 - in packages/python-hpilo/trunk/debian (rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Wed Jan 28 11:35:11 UTC 2015


    Date: Wednesday, January 28, 2015 @ 11:35:10
  Author: morph
Revision: 31701

proper installation

Modified:
  packages/python-hpilo/trunk/debian/rules

Modified: packages/python-hpilo/trunk/debian/rules
===================================================================
--- packages/python-hpilo/trunk/debian/rules	2015-01-27 14:54:18 UTC (rev 31700)
+++ packages/python-hpilo/trunk/debian/rules	2015-01-28 11:35:10 UTC (rev 31701)
@@ -4,5 +4,14 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+PKG2=python-hpilo
+PKG3=python3-hpilo
+
 %:
 	dh $@ --with python2,python3
+
+override_dh_install:
+	python  setup.py install --root=$(CURDIR)/debian/$(PKG2)/ --install-layout=deb
+	python3 setup.py install --root=$(CURDIR)/debian/$(PKG3)/ --install-layout=deb
+	# remove extra binaries from PKG3
+	rm -rf $(CURDIR)/debian/$(PKG3)/usr/bin




More information about the Python-modules-commits mailing list