diff --git a/debian/rules b/debian/rules
index a149c357550b57d507bfa12636ea3d7375b41d37_ZGViaWFuL3J1bGVz..49e43eeec30209495bdb9da864aa9de3dbe87ac3_ZGViaWFuL3J1bGVz 100755
--- 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-blog/usr/
+	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-blog/usr/
 	rm -rf debian/cubicweb-blog/usr/lib/python*