[skel] packaging fix: should build package without setuptools, and fix default for dependency_links
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 20 Apr 2010 09:58:28 +0200
changeset 5334 7da1a6ca8f65
parent 5333 9eea4a5eaf1a
child 5335 9aed0b607130
[skel] packaging fix: should build package without setuptools, and fix default for dependency_links
skeleton/debian/rules.tmpl
skeleton/setup.py
--- a/skeleton/debian/rules.tmpl	Tue Apr 20 09:57:47 2010 +0200
+++ b/skeleton/debian/rules.tmpl	Tue Apr 20 09:58:28 2010 +0200
@@ -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:
@@ -23,7 +23,7 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs -i
-	python setup.py -q install --no-compile --prefix=debian/%(distname)s/usr/
+	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/%(distname)s/usr/
 	# remove generated .egg-info file
 	rm -rf debian/%(distname)s/usr/lib/python*
 
--- a/skeleton/setup.py	Tue Apr 20 09:57:47 2010 +0200
+++ b/skeleton/setup.py	Tue Apr 20 09:58:28 2010 +0200
@@ -36,7 +36,7 @@
 data_files = getattr(__pkginfo__, 'data_files', None)
 include_dirs = getattr(__pkginfo__, 'include_dirs', [])
 ext_modules = getattr(__pkginfo__, 'ext_modules', None)
-dependency_links = getattr(__pkginfo__, 'dependency_links', None)
+dependency_links = getattr(__pkginfo__, 'dependency_links', [])
 
 STD_BLACKLIST = ('CVS', '.svn', '.hg', 'debian', 'dist', 'build')