source: trunk/packages/invirt-base/setup.py @ 2281

Last change on this file since 2281 was 2151, checked in by broder, 16 years ago

Move invirt-setquotas into invirt-database.

While we're at it, clean up the mechanism to list scripts in a Python
package.

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