[skel] packaging fix: should build package without setuptools, and fix default for dependency_links
--- 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')