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 152c13d commit 1845a34Copy full SHA for 1845a34
1 file changed
distutils/command/_framework_compat.py
@@ -7,18 +7,21 @@
7
import os
8
import functools
9
import subprocess
10
+import sysconfig
11
12
13
@functools.lru_cache()
14
def enabled():
15
"""
- Only enabled for Python 3.9 framework builds except ensurepip and venv.
16
+ Only enabled for Python 3.9 framework homebrew builds
17
+ except ensurepip and venv.
18
19
PY39 = (3, 9) < sys.version_info < (3, 10)
20
framework = sys.platform == 'darwin' and sys._framework
21
+ homebrew = "Cellar" in sysconfig.get_config_var('projectbase')
22
venv = sys.prefix != sys.base_prefix
23
ensurepip = os.environ.get("ENSUREPIP_OPTIONS")
- return PY39 and framework and not venv and not ensurepip
24
+ return PY39 and framework and homebrew and not venv and not ensurepip
25
26
27
schemes = dict(
0 commit comments