blob: 43b4f4ecb74556d3e7b1076bb193887abc41d50c (
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
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/usr/bin/env python
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.9', 'stsci.distutils>=0.3.2'],
d2to1=True,
use_2to3=True,
zip_safe=False
)
|