Began versioning.
[stepper.git] / setup.py
1 """Stepper: Python control of stepper motors.
2
3 Requires
4   * PyComedi ()
5 """
6
7 classifiers = """\
8 Development Status :: 2 - Pre-Alpha
9 Intended Audience :: Developers
10 Intended Audience :: Science/Research
11 Operating System :: POSIX
12 Operating System :: Unix
13 License :: OSI Approved :: BSD License
14 Programming Language :: Python
15 Topic :: Scientific/Engineering
16 Topic :: Software Development :: Libraries :: Python Modules
17 """
18
19 # http://peak.telecommunity.com/DevCenter/setuptools#using-setuptools-without-bundling-it
20 import ez_setup
21 ez_setup.use_setuptools()
22
23 from setuptools import setup, find_packages
24
25 # patch distutils if it can't cope with the "classifiers" or
26 # "download_url" keywords
27 from sys import version
28 if version < '2.2.3':
29     from distutils.dist import DistributionMetadata
30     DistributionMetadata.classifiers = None
31     DistributionMetadata.download_url = None
32
33 #from stepper import VERSION
34 VERSION = "0.2" # can't import VERSION without also importing comedi.
35
36 doclines = __doc__.split("\n")
37
38 setup(name="stepper",
39       version=VERSION,
40       maintainer="W. Trevor King",
41       maintainer_email="wking@drexel.edu",
42       url = "http://www.physics.drexel.edu/~wking/code/python/",
43       download_url = "http://www.physics.drexel.edu/~wking/code/python/stepper-%s.tar.gz" % (VERSION),
44       license = "BSD",
45       platforms = ["all"],
46       description = doclines[0],
47       long_description = "\n".join(doclines[2:]),
48       classifiers = filter(None, classifiers.split("\n")),
49       py_modules = ['stepper', 'ez_setup'],
50       #packages = find_packages(),
51       install_requires = "pycomedi >= 0.2",
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