remove .egg-info file in cube's debian/rule template tls-sprint
authorsylvain.thenault@logilab.fr
Thu, 23 Apr 2009 16:09:35 +0200
branchtls-sprint
changeset 1449 7751785c0815
parent 1448 62f099f0916f
child 1450 8edb0806dde4
remove .egg-info file in cube's debian/rule template
skeleton/debian/rules.tmpl
--- a/skeleton/debian/rules.tmpl	Thu Apr 23 16:09:04 2009 +0200
+++ b/skeleton/debian/rules.tmpl	Thu Apr 23 16:09:35 2009 +0200
@@ -5,12 +5,12 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 build: build-stamp
-build-stamp: 
+build-stamp:
 	dh_testdir
 	python setup.py -q build
 	touch build-stamp
 
-clean: 
+clean:
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp configure-stamp
@@ -24,6 +24,8 @@
 	dh_clean -k
 	dh_installdirs -i
 	python setup.py -q install --no-compile --prefix=debian/%(distname)s/usr/
+	# remove generated .egg-info file
+	rm -rf debian/cubicweb-comment/usr/lib/python*
 
 
 # Build architecture-independent files here.
@@ -39,13 +41,13 @@
 	dh_compress -i -X.py -X.ini -X.xml -Xtest
 	dh_fixperms -i
 	dh_installdeb -i
-	dh_gencontrol -i 
+	dh_gencontrol -i
 	dh_md5sums -i
 	dh_builddeb -i
 
 
 # Build architecture-dependent files here.
-binary-arch: 
+binary-arch:
 
-binary: binary-indep 
+binary: binary-indep
 .PHONY: build clean binary-arch binary-indep binary