source: trunk/debathena/debathena/metrics/setup.py @ 24043

Revision 24043, 1.1 KB checked in by broder, 15 years ago (diff)
Create debathena-metrics package for gathering information on how Athena is being used. This package will start a daemon at the beginning of a login session. This daemon captures any path executed by the user over the course of their session, any packages installed by the user, and the total length of the login session. The collected information is sent to wslogger when the user is logged out.
  • Property svn:executable set to *
Line 
1#!/usr/bin/python
2
3from setuptools import setup, find_packages
4from distutils.extension import Extension
5from Pyrex.Distutils import build_ext
6
7try:
8    from debian_bundle.changelog import Changelog
9    from debian_bundle.deb822 import Deb822
10    from email.utils import parseaddr
11
12    version = Changelog(open(path.join(path.dirname(__file__), 'debian/changelog')).read()).\
13              get_version().full_version
14
15    maintainer_full = Deb822(open(path.join(path.dirname(__file__), 'debian/control')))['Maintainer']
16    maintainer, maintainer_email = parseaddr(maintainer_full)
17except:
18    version = '0.0.0'
19    maintainer = ''
20    maintainer_email = ''
21
22setup(
23    name="debathena.metrics",
24    version=version,
25    description="Metrics gatherer for Debathena cluster machines.",
26    maintainer=maintainer,
27    maintainer_email=maintainer_email,
28    license="MIT",
29    requires=['Pyrex'],
30    packages=find_packages(),
31    ext_modules=[
32        Extension("debathena.metrics.connector",
33                  ["debathena/metrics/connector.pyx"])
34        ],
35    cmdclass= {"build_ext": build_ext}
36)
Note: See TracBrowser for help on using the repository browser.