source: trunk/packages/xvm-authz-locker/setup.py @ 2647

Last change on this file since 2647 was 2602, checked in by broder, 15 years ago

Move XVM's locker authorization code into a separate xvm-authz-locker
package (and corresponding xvm.authz.locker Python package).

This makes it possible to install invirt-base without needing the
authz code installed as well, and also separates some very
XVM-specific logic from the Invirt packages.

  • Property svn:executable set to *
File size: 846 bytes
Line 
1#!/usr/bin/python
2
3from os import path
4from email.utils import parseaddr
5from glob import glob
6from setuptools import setup, find_packages
7
8try:
9    from debian_bundle.changelog import Changelog
10    from debian_bundle.deb822 import Deb822
11    version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\
12        get_version().full_version
13
14    maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer']
15    maintainer, maintainer_email = parseaddr(maintainer_full)
16except:
17    version = '0.0.0'
18    maintainer, maintainer_email = parseaddr('Invirt project <invirt@mit.edu>')
19
20setup(
21    name='xvm.authz.locker',
22    version=version,
23    maintainer=maintainer,
24    maintainer_email=maintainer_email,
25   
26    packages=find_packages('python'),
27    package_dir = {'': 'python'},
28)
Note: See TracBrowser for help on using the repository browser.