-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·37 lines (32 loc) · 1.11 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/python
from setuptools import setup, find_packages
from distutils.extension import Extension
from Pyrex.Distutils import build_ext
try:
from debian_bundle.changelog import Changelog
from debian_bundle.deb822 import Deb822
from email.utils import parseaddr
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)
except:
version = '0.0.0'
maintainer = ''
maintainer_email = ''
setup(
name="debathena.metrics",
version=version,
description="Metrics gatherer for Debathena cluster machines.",
maintainer=maintainer,
maintainer_email=maintainer_email,
license="MIT",
requires=['Pyrex'],
packages=find_packages(),
namespace_packages=['debathena'],
ext_modules=[
Extension("debathena.metrics.connector",
["debathena/metrics/connector.pyx"])
],
cmdclass= {"build_ext": build_ext}
)