source: trunk/packages/sipb-xen-base/setup.py @ 1207

Last change on this file since 1207 was 1206, checked in by broder, 16 years ago

Switch sipb-xen-base to build using a setup.py script

  • Property svn:executable set to *
File size: 653 bytes
Line 
1#!/usr/bin/python
2
3import os
4from debian_bundle.changelog import Changelog
5from debian_bundle.deb822 import Deb822
6from email.utils import parseaddr
7from setuptools import setup
8
9version = Changelog(open(os.path.join(__file__, 'debian/changelog')).read()).\
10    get_version().full_version
11
12maintainer_full = Deb822(open(os.path.join(__file__, 'debian/control')))['Maintainer']
13maintainer, maintainer_email = parseaddr(maintainer_full)
14
15setup(
16    name='invirt',
17    version=version,
18    maintainer=maintainer,
19    maintainer_email=maintainer_full,
20   
21    package_dir = {'': 'python'},
22    scripts=['scripts/invirt-getconf', 'scripts/invirt-reload']
23)
Note: See TracBrowser for help on using the repository browser.