diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-03-29 13:13:31 -0400 |
---|---|---|
committer | Nadia Dencheva <nadia.dencheva@gmail.com> | 2016-07-31 17:13:35 -0400 |
commit | 0e7084b80d6f1c6ceaf6ebe59b0a20d3f8a54643 (patch) | |
tree | 2b1fd4720fd3c74bc2e197e8bcfcb135ff4af748 /setup.py | |
parent | f11522d4d7665e1ebb2a9dccd17e3a234aad7c66 (diff) | |
download | stwcs_hcf-0e7084b80d6f1c6ceaf6ebe59b0a20d3f8a54643.tar.gz |
Implement RECON
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 46 |
1 files changed, 36 insertions, 10 deletions
@@ -1,15 +1,41 @@ #!/usr/bin/env python +import recon.release +from glob import glob +from numpy import get_include as np_include +from setuptools import setup, find_packages, Extension -try: - from setuptools import setup -except ImportError: - from distribute_setup import use_setuptools - use_setuptools() - from setuptools import setup + +version = recon.release.get_info() +recon.release.write_template(version, 'lib/stwcs') setup( - setup_requires=['d2to1>=0.2.9', 'stsci.distutils>=0.3.2'], - d2to1=True, - use_2to3=False, - zip_safe=False + name = 'stwcs', + version = version.pep386, + author = 'Nadia Dencheva, Warren Hack', + author_email = 'help@stsci.edu', + description = 'Recomputes the WCS of an HST observation and puts all distortion', + url = 'https://github.com/spacetelescope/stwcs', + classifiers = [ + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Scientific/Engineering :: Astronomy', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + install_requires = [ + 'astropy', + 'nose', + 'numpy', + 'stsci.tools', + ], + package_dir = { + '': 'lib', + }, + packages = find_packages('lib'), + package_data = { + 'stwcs/gui': ['*.help'], + 'stwcs/gui/pars': ['*'], + 'stwcs/gui/htmlhelp': ['*'], + }, ) |