We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a17a5 commit 6b70fb2Copy full SHA for 6b70fb2
_distutils_hack/__init__.py
@@ -8,14 +8,6 @@
8
is_pypy = '__pypy__' in sys.builtin_module_names
9
10
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
19
def warn_distutils_present():
20
if 'distutils' not in sys.modules:
21
return
@@ -38,6 +30,14 @@ def clear_distutils():
38
30
del sys.modules[name]
39
31
40
32
33
+def enabled():
34
+ """
35
+ Allow selection of distutils by environment variable.
36
37
+ which = os.environ.get('SETUPTOOLS_USE_DISTUTILS', 'stdlib')
+ return which == 'local'
+
41
def ensure_local_distutils():
42
clear_distutils()
43
distutils = importlib.import_module('setuptools._distutils')
0 commit comments