From: Evan Broder Date: Fri, 24 Oct 2008 09:47:21 +0000 (-0400) Subject: Small fix in the code to parse the debian/control and debian/changelog X-Git-Tag: sipb-xen-base/8.24~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-base.git/commitdiff_plain/3f05d3ff7e3a28ead343f7a8ddc2041b2f506cf4?hp=1547e8a3fcf273791728fc554af99fd033647cac Small fix in the code to parse the debian/control and debian/changelog files in sipb-xen-base's setup.py svn path=/trunk/packages/sipb-xen-base/; revision=1208 --- diff --git a/setup.py b/setup.py index 8f97297..36fef21 100755 --- a/setup.py +++ b/setup.py @@ -1,15 +1,15 @@ #!/usr/bin/python -import os +from os import path 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()).\ +version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\ get_version().full_version -maintainer_full = Deb822(open(os.path.join(__file__, 'debian/control')))['Maintainer'] +maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer'] maintainer, maintainer_email = parseaddr(maintainer_full) setup( @@ -18,6 +18,7 @@ setup( maintainer=maintainer, maintainer_email=maintainer_full, + packages = ['invirt'], package_dir = {'': 'python'}, scripts=['scripts/invirt-getconf', 'scripts/invirt-reload'] )