+sipb-xen-base (8.24) unstable; urgency=low
+
+ * Switch to using a setup.py file with CDBS's Python support
+
+ -- Evan Broder <broder@mit.edu> Fri, 24 Oct 2008 05:22:49 -0400
+
sipb-xen-base (8.23) unstable; urgency=low
* Now that we're using Python 2.5, we can actually write with statements
#!/usr/bin/make -f
+DEB_PYTHON_SYSTEM=pysupport
+
include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
-# do we, should we, care between pysupport and pycentral?
-binary-install/sipb-xen-base::
- dh_pysupport -psipb-xen-base
+clean::
+ rm -rf invirt.egg-info
--- /dev/null
+#!/usr/bin/python
+
+import os
+from debian_bundle.changelog import Changelog
+from debian_bundle.deb822 import Deb822
+from email.utils import parseaddr
+from setuptools import setup
+
+version = Changelog(open(os.path.join(__file__, 'debian/changelog')).read()).\
+ get_version().full_version
+
+maintainer_full = Deb822(open(os.path.join(__file__, 'debian/control')))['Maintainer']
+maintainer, maintainer_email = parseaddr(maintainer_full)
+
+setup(
+ name='invirt',
+ version=version,
+ maintainer=maintainer,
+ maintainer_email=maintainer_full,
+
+ package_dir = {'': 'python'},
+ scripts=['scripts/invirt-getconf', 'scripts/invirt-reload']
+)