diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-01 17:32:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-01 17:32:58 +0100 |
| commit | 00eaec7a0c4e49af9c4062145c969f08d2953abe (patch) | |
| tree | 26ac5421a2fa1c040eaa880354fee717556611a4 /setuptools/_distutils/command/_framework_compat.py | |
| parent | fe6d794adea937f08146084495d0721a375d8ce7 (diff) | |
| parent | 3ecabf8583b6e57d3ac47b34d6afec0b9d00b167 (diff) | |
| download | python-setuptools-git-00eaec7a0c4e49af9c4062145c969f08d2953abe.tar.gz | |
Merge branch 'main' into docs-notfound-page
Diffstat (limited to 'setuptools/_distutils/command/_framework_compat.py')
| -rw-r--r-- | setuptools/_distutils/command/_framework_compat.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/setuptools/_distutils/command/_framework_compat.py b/setuptools/_distutils/command/_framework_compat.py index e032603a..cffa27cb 100644 --- a/setuptools/_distutils/command/_framework_compat.py +++ b/setuptools/_distutils/command/_framework_compat.py @@ -7,18 +7,21 @@ import sys import os import functools import subprocess +import sysconfig @functools.lru_cache() def enabled(): """ - Only enabled for Python 3.9 framework builds except ensurepip and venv. + Only enabled for Python 3.9 framework homebrew builds + except ensurepip and venv. """ PY39 = (3, 9) < sys.version_info < (3, 10) framework = sys.platform == 'darwin' and sys._framework + homebrew = "Cellar" in sysconfig.get_config_var('projectbase') venv = sys.prefix != sys.base_prefix ensurepip = os.environ.get("ENSUREPIP_OPTIONS") - return PY39 and framework and not venv and not ensurepip + return PY39 and framework and homebrew and not venv and not ensurepip schemes = dict( |
