Bumped version to 0.2
[pycomedi.git] / setup.py
1 """PyComedi: an object-oriented interface for the Comedi drivers.
2
3 Requires
4   * Numpy  (http://numpy.scipy.org/)
5   * Comedi (http://www.comedi.org/)
6 """
7
8 classifiers = """\
9 Development Status :: 2 - Pre-Alpha
10 Intended Audience :: Developers
11 Intended Audience :: Science/Research
12 Operating System :: POSIX
13 Operating System :: Unix
14 License :: OSI Approved :: GNU General Public License (GPL)
15 Programming Language :: Python
16 Topic :: Scientific/Engineering
17 Topic :: Software Development :: Libraries :: Python Modules
18 """
19
20 # http://peak.telecommunity.com/DevCenter/setuptools#using-setuptools-without-bundling-it
21 import ez_setup
22 ez_setup.use_setuptools()
23
24 from setuptools import setup, find_packages
25
26 # patch distutils if it can't cope with the "classifiers" or
27 # "download_url" keywords
28 from sys import version
29 if version < '2.2.3':
30     from distutils.dist import DistributionMetadata
31     DistributionMetadata.classifiers = None
32     DistributionMetadata.download_url = None
33
34 #from pycomedi import VERSION
35 VERSION = "0.2" # importing pycomedi requires comedi on this machine, so copy.
36
37 doclines = __doc__.split("\n")
38
39 setup(name="pycomedi",
40       version=VERSION,
41       maintainer="W. Trevor King",
42       maintainer_email="wking@drexel.edu",
43       url = "http://www.physics.drexel.edu/~wking/code/python/",
44       download_url = "http://www.physics.drexel.edu/~wking/code/python/pycomedi-%s.tar.gz" % VERSION,
45       license = "GNU General Public License (GPL)",
46       platforms = ["all"],
47       description = doclines[0],
48       long_description = "\n".join(doclines[2:]),
49       classifiers = filter(None, classifiers.split("\n")),
50       py_modules = ['ez_setup'],
51       packages = find_packages(),
52       )
53
54 # use packages to include subdirectory packages
55 # use py_modules to include single-module packages
56 # use ext_modules to include extension modules
57 # see
58 #   http://www.python.org/doc/2.5.2/dist/listing-modules.html
59 #   http://www.python.org/doc/2.5.2/dist/describing-extensions.html