|
8 | 8 | import setuptools_bootstrap
|
9 | 9 | from setuptools import setup
|
10 | 10 |
|
| 11 | +# TODO: Any code related to getting astropy_helpers on sys.path will be moved |
| 12 | +# into an astropy_helpers bootstrap script that will also handle the details of |
| 13 | +# *where* to get astropy_helpers: Via submodule sync in source repository |
| 14 | +# clones, or via setuptools setup_requires |
| 15 | +sys.path.insert(1, 'astropy_helpers') |
| 16 | + |
11 | 17 | #A dirty hack to get around some early import/configurations ambiguities
|
12 | 18 | if sys.version_info[0] >= 3:
|
13 | 19 | import builtins
|
|
18 | 24 | from distutils.dist import Distribution
|
19 | 25 |
|
20 | 26 | import astropy
|
21 |
| -from astropy.setup_helpers import (register_commands, adjust_compiler, |
22 |
| - get_package_info, get_debug_option, |
23 |
| - is_distutils_display_option) |
24 |
| -from astropy.version_helpers import get_git_devstr, generate_version_py |
| 27 | +from astropy_helpers.setup_helpers import ( |
| 28 | + register_commands, adjust_compiler, get_package_info, get_debug_option, |
| 29 | + is_distutils_display_option) |
| 30 | +from astropy_helpers.git_helpers import get_git_devstr |
| 31 | +from astropy_helpers.version_helpers import generate_version_py |
25 | 32 |
|
26 | 33 | NAME = 'astropy'
|
27 | 34 |
|
|
46 | 53 | adjust_compiler(NAME)
|
47 | 54 |
|
48 | 55 | # Freeze build information in version.py
|
49 |
| -generate_version_py(NAME, VERSION, RELEASE, get_debug_option()) |
| 56 | +generate_version_py(NAME, VERSION, RELEASE, get_debug_option(NAME)) |
50 | 57 |
|
51 | 58 | # Treat everything in scripts except README.rst as a script to be installed
|
52 | 59 | scripts = [fname for fname in glob.glob(os.path.join('scripts', '*'))
|
|
0 commit comments