Setup package for setuptools distribution.
[FFT-tools.git] / setup.py
1 """FFT_tools: unitary FFTs and power spectra for real data.
2
3 This pacakage mostly consists of normalizing wrappers around Numpy.fft.rttf()
4 and a large suite of tests and checks to verify proper function.
5 Requires
6   * Numpy (http://numpy.scipy.org/)
7 """
8
9 classifiers = """\
10 Development Status :: 2 - Pre-Alpha
11 Intended Audience :: Developers
12 Intended Audience :: Science/Research
13 Operating System :: POSIX
14 Operating System :: Unix
15 License :: OSI Approved :: Python Software Foundation License
16 Programming Language :: Python
17 Topic :: Scientific/Engineering
18 Topic :: Software Development :: Libraries :: Python Modules
19 """
20
21 # http://peak.telecommunity.com/DevCenter/setuptools#using-setuptools-without-bundling-it
22 import ez_setup
23 ez_setup.use_setuptools()
24
25 from setuptools import setup, find_packages
26
27 # patch distutils if it can't cope with the "classifiers" or
28 # "download_url" keywords
29 from sys import version
30 if version < '2.2.3':
31     from distutils.dist import DistributionMetadata
32     DistributionMetadata.classifiers = None
33     DistributionMetadata.download_url = None
34
35 doclines = __doc__.split("\n")
36
37 setup(name="FFT_tools",
38       version="0.1",
39       maintainer="W. Trevor King",
40       maintainer_email="wking@drexel.edu",
41       url = "http://www.physics.drexel.edu/~wking/code/python/",
42       download_url = "http://www.physics.drexel.edu/~wking/code/python/FFT_tools-0.1.tar.gz",
43       license = "http://www.python.org/psf/license/",
44       platforms = ["all"],
45       description = doclines[0],
46       long_description = "\n".join(doclines[2:]),
47       classifiers = filter(None, classifiers.split("\n")),
48       py_modules = ['FFT_tools', 'ez_setup'],
49       #packages = find_packages(),
50       )
51
52 # use packages to include subdirectory packages
53 # use py_modules to include single-module packages
54 # use ext_modules to include extension modules
55 # see
56 #   http://www.python.org/doc/2.5.2/dist/listing-modules.html
57 #   http://www.python.org/doc/2.5.2/dist/describing-extensions.html