summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-03-29 13:13:31 -0400
committerNadia Dencheva <nadia.dencheva@gmail.com>2016-07-31 17:13:35 -0400
commit0e7084b80d6f1c6ceaf6ebe59b0a20d3f8a54643 (patch)
tree2b1fd4720fd3c74bc2e197e8bcfcb135ff4af748 /setup.py
parentf11522d4d7665e1ebb2a9dccd17e3a234aad7c66 (diff)
downloadstwcs_hcf-0e7084b80d6f1c6ceaf6ebe59b0a20d3f8a54643.tar.gz
Implement RECON
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py46
1 files changed, 36 insertions, 10 deletions
diff --git a/setup.py b/setup.py
index 26bc0d2..9511de0 100755
--- a/setup.py
+++ b/setup.py
@@ -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': ['*'],
+ },
)