Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit ba70252

Browse files
committed
_PACKAGE_SETUP_ should be _ASTROPY_SETUP_ (see astropy/astropy#950)
1 parent be84b73 commit ba70252

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎montage_wrapper/__init__.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
#this indicates whether or not we are in the package's setup.py
66
try:
7-
_PACKAGE_SETUP_
7+
_ASTROPY_SETUP_
88
except NameError:
99
from sys import version_info
1010
if version_info[0] >= 3:
1111
import builtins
1212
else:
1313
import __builtin__ as builtins
14-
builtins._PACKAGE_SETUP_ = False
14+
builtins._ASTROPY_SETUP_ = False
1515
del version_info
1616

1717
try:
@@ -106,7 +106,7 @@ def test(package=None, test_path=None, args=None, plugins=None,
106106
remote_data=remote_data, pep8=pep8, pdb=pdb,
107107
coverage=coverage, open_files=open_files, **kwargs)
108108

109-
if not _PACKAGE_SETUP_:
109+
if not _ASTROPY_SETUP_:
110110

111111
import os
112112
from warnings import warn

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import builtins
2626
else:
2727
import __builtin__ as builtins
28-
builtins._PACKAGE_SETUP_ = True
28+
builtins._ASTROPY_SETUP_ = True
2929

3030
import astropy
3131
from astropy.setup_helpers import (register_commands, adjust_compiler,

0 commit comments

Comments
 (0)