summaryrefslogtreecommitdiff
path: root/setup.py
blob: cc150f17bf32dc5ab22ed7c9b2c5245ce8214ecc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'}
      )