X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-database.git/blobdiff_plain/14876f476e6c2b4c60d07af692ec020e062aa1f4..HEAD:/setup.py?ds=sidebyside diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index b9a3eda..79db2e4 --- a/setup.py +++ b/setup.py @@ -1,5 +1,25 @@ -from distutils.core import setup -setup(name='sipb_xen_database', - version='0.1', - packages=['sipb_xen_database'], - ) +#!/usr/bin/python + +from os import path +from debian_bundle.changelog import Changelog +from debian_bundle.deb822 import Deb822 +from email.utils import parseaddr +from glob import glob +from setuptools import setup + +version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\ + get_version().full_version + +maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer'] +maintainer, maintainer_email = parseaddr(maintainer_full) + +setup( + name='invirt.database', + version=version, + maintainer=maintainer, + maintainer_email=maintainer_email, + + packages = ['invirt.database'], + package_dir = {'invirt': 'python'}, + scripts=glob('scripts/*') +)