diff options
author | sienkiew <sienkiew@stsci.edu> | 2011-07-30 18:45:45 -0400 |
---|---|---|
committer | sienkiew <sienkiew@stsci.edu> | 2011-07-30 18:45:45 -0400 |
commit | cb63cdde873bfaaeb2cc6b4189ac1d6398205711 (patch) | |
tree | a3db25f528c0ab650eb9519b67e1556da5c99e95 /setup.py | |
parent | a139160b99151ee0c06610af7cfe7f42375ec7c4 (diff) | |
download | stwcs_hcf-cb63cdde873bfaaeb2cc6b4189ac1d6398205711.tar.gz |
temporarily revert to the old install system
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13423 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'setup.py')
-rw-r--r--[-rwxr-xr-x] | setup.py | 36 |
1 files changed, 3 insertions, 33 deletions
@@ -1,35 +1,5 @@ #!/usr/bin/env python +from __future__ import division # confidence high -try: - from setuptools import setup -except ImportError: - from distribute_setup import use_setuptools - use_setuptools() - from setuptools import setup - -try: - from stsci.distutils.command.easier_install import easier_install -except ImportError: - import os - import sys - stsci_distutils = os.path.abspath(os.path.join('..', 'distutils', 'lib')) - if os.path.exists(stsci_distutils) and stsci_distutils not in sys.path: - sys.path.append(stsci_distutils) - try: - from stsci.distutils.command.easier_install import easier_install - import setuptools.command.easy_install - except ImportError: - # If even this failed, we're not in an stsci_python source checkout, - # so there's nothing gained from using easier_install - from setuptools.command.easy_install import easy_install - easier_install = easy_install -# This is required so that easier_install can be used for setup_requires -import setuptools -setuptools.command.easy_install.easy_install = easier_install - -setup( - setup_requires=['d2to1>=0.2.5', 'stsci.distutils==0.2'], - d2to1=True, - use_2to3=True, - zip_safe=False -) +import stsci.tools.stsci_distutils_hack as H +H.run() |