| 1 | #!/usr/bin/env python |
|---|
| 2 | |
|---|
| 3 | # check Python's version |
|---|
| 4 | import sys |
|---|
| 5 | if sys.version < '2.4': |
|---|
| 6 | sys.stderr.write('This module requires Python 2.4 or later.\n') |
|---|
| 7 | sys.exit(1) |
|---|
| 8 | |
|---|
| 9 | # import statements |
|---|
| 10 | from distutils.core import setup, Extension |
|---|
| 11 | from distutils.util import get_platform |
|---|
| 12 | |
|---|
| 13 | # debug |
|---|
| 14 | DISTUTILS_DEBUG = True |
|---|
| 15 | |
|---|
| 16 | # get platform |
|---|
| 17 | platform = get_platform() |
|---|
| 18 | |
|---|
| 19 | # check linux platform |
|---|
| 20 | if not platform.startswith('linux'): |
|---|
| 21 | raise Exception, "inotify not available under %s" % platform |
|---|
| 22 | |
|---|
| 23 | classif=[ |
|---|
| 24 | 'Environment :: Console', |
|---|
| 25 | 'Intended Audience :: Developers', |
|---|
| 26 | 'License :: OSI Approved :: GNU General Public License (GPL)', |
|---|
| 27 | 'Natural Language :: English', |
|---|
| 28 | 'Operating System :: POSIX :: Linux', |
|---|
| 29 | 'Programming Language :: Python', |
|---|
| 30 | 'Topic :: Software Development :: Libraries', |
|---|
| 31 | 'Topic :: System :: Monitoring' |
|---|
| 32 | ] |
|---|
| 33 | |
|---|
| 34 | setup( |
|---|
| 35 | name='pyinotify', |
|---|
| 36 | version='0.8.1', |
|---|
| 37 | description='Filesystem monitoring, use inotify', |
|---|
| 38 | author='Sebastien Martini', |
|---|
| 39 | author_email='sebastien.martini@gmail.com', |
|---|
| 40 | license='GPL 2', |
|---|
| 41 | platforms='Linux', |
|---|
| 42 | classifiers=classif, |
|---|
| 43 | url='http://trac.dbzteam.org/pyinotify', |
|---|
| 44 | download_url='http://git.dbzteam.org/?p=pyinotify.git;a=snapshot;h=HEAD;sf=tgz', |
|---|
| 45 | py_modules=['pyinotify'], |
|---|
| 46 | ) |
|---|