f48c74502b77e35badd49fed47acff72ceddfa3c
[data_logger.git] / setup.py
1 """data_logger: simple data logging/loading classes for consist data managing
2
3 General data is pickled using cPickle, and there are specialized methods for
4 saving data in the form of binary strings or dicts of numpy arrays.
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 :: GNU General Public License (GPL)
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 import data_logger
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 doclines = __doc__.split("\n")
35
36 setup(name="data_logger",
37       version=data_logger.VERSION,
38       maintainer="W. Trevor King",
39       maintainer_email="wking@drexel.edu",
40       url = "http://www.physics.drexel.edu/~wking/code/python/",
41       download_url = "http://www.physics.drexel.edu/~wking/code/python/data_logger-0.1.tar.gz",
42       license = "GNU General Public License (GPL)",
43       platforms = ["all"],
44       description = doclines[0],
45       long_description = "\n".join(doclines[2:]),
46       classifiers = filter(None, classifiers.split("\n")),
47       py_modules = ['data_logger', 'ez_setup'],
48       #packages = find_packages(),
49       )
50
51 # use packages to include subdirectory packages
52 # use py_modules to include single-module packages
53 # use ext_modules to include extension modules
54 # see
55 #   http://www.python.org/doc/2.5.2/dist/listing-modules.html
56 #   http://www.python.org/doc/2.5.2/dist/describing-extensions.html