# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1272288791 -7200
#      Mon Apr 26 15:33:11 2010 +0200
# Branch stable
# Node ID 53be1c3de64918feec2b3c4e067d27e6f26cb04f
# Parent  e691ed317dda75ca94f04de7e90ae1bd18a01f55
don't use setuptools to build debian package

diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@
 build: build-stamp
 build-stamp:
 	dh_testdir
-	python setup.py -q build
+	NO_SETUPTOOLS=1 python setup.py -q build
 	touch build-stamp
 
 clean:
@@ -24,7 +24,7 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs -i
-	python setup.py -q install --no-compile --prefix=debian/cubicweb-comment/usr/
+	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-comment/usr/
 	# remove generated .egg-info file
 	rm -rf debian/cubicweb-comment/usr/lib/python*