summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2008-08-15 09:49:03 -0400
committerdencheva <dencheva@stsci.edu>2008-08-15 09:49:03 -0400
commitc42103854ca3f38cd88e7d07b6c5a8af5eda0ee2 (patch)
tree386183951b5ed43415b6afd12ca390683902906c /setup.py
downloadstwcs_hcf-c42103854ca3f38cd88e7d07b6c5a8af5eda0ee2.tar.gz
moved hstwcs from general development repository to stsci_python/development
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@6931 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..cc150f1
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,23 @@
+from distutils.core import setup
+from os.path import join
+# PyFITS
+try:
+ import pyfits
+except ImportError:
+ print "WARNING: PyFITS must be installed to use hstwcs."
+ print " Since this is not a build-time dependency, the build will proceed."
+
+# PyWCS
+try:
+ import pywcs
+except ImportError:
+ print "WARNING: PyWCS must be installed to use hstwcs."
+ print " Since this is not a build-time dependency, the build will proceed."
+
+setup(name="hstwcs",
+ version="0.1",
+ description="HST WCS Corrections",
+ packages=['hstwcs', 'hstwcs/updatewcs', 'hstwcs/wcsutil', 'hstwcs/distortion'],
+ package_dir={'hstwcs':'lib', 'hstwcs/updatewcs': 'updatewcs',
+ 'hstwcs/wcsutil': 'wcsutil', 'hstwcs/distortion': 'distortion'}
+ )