diff --git a/debian/rules b/debian/rules
index 59d444c81e53f130bd6aaae9d59f9bd1597275a4_ZGViaWFuL3J1bGVz..197198cd6c6446a95adba8a974f62efaa69e5f0f_ZGViaWFuL3J1bGVz 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,6 +25,8 @@
 	dh_clean -k
 	dh_installdirs -i
 	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*
 
 
 # Build architecture-independent files here.