File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
setuptools/_distutils/command Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
import os
8
8
import functools
9
9
import subprocess
10
+ import sysconfig
10
11
11
12
12
13
@functools .lru_cache ()
13
14
def enabled ():
14
15
"""
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.
16
18
"""
17
19
PY39 = (3 , 9 ) < sys .version_info < (3 , 10 )
18
20
framework = sys .platform == 'darwin' and sys ._framework
21
+ homebrew = "Cellar" in sysconfig .get_config_var ('projectbase' )
19
22
venv = sys .prefix != sys .base_prefix
20
23
ensurepip = os .environ .get ("ENSUREPIP_OPTIONS" )
21
- return PY39 and framework and not venv and not ensurepip
24
+ return PY39 and framework and homebrew and not venv and not ensurepip
22
25
23
26
24
27
schemes = dict (
You can’t perform that action at this time.
0 commit comments