Skip to content

Commit 6b70fb2

Browse files
committed
Restore location of 'enabled'
1 parent 48a17a5 commit 6b70fb2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

_distutils_hack/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
is_pypy = '__pypy__' in sys.builtin_module_names
99

1010

11-
def enabled():
12-
"""
13-
Allow selection of distutils by environment variable.
14-
"""
15-
which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
16-
return which == 'local'
17-
18-
1911
def warn_distutils_present():
2012
if 'distutils' not in sys.modules:
2113
return
@@ -38,6 +30,14 @@ def clear_distutils():
3830
del sys.modules[name]
3931

4032

33+
def enabled():
34+
"""
35+
Allow selection of distutils by environment variable.
36+
"""
37+
which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
38+
return which == 'local'
39+
40+
4141
def ensure_local_distutils():
4242
clear_distutils()
4343
distutils = importlib.import_module('setuptools._distutils')

0 commit comments

Comments
 (0)