diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-07-13 18:00:37 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-07-13 18:00:37 -0400 |
commit | 0bf43816f5d09ce1a2e0fe13de013aa36962d685 (patch) | |
tree | d5dca6a5a30ca4ffd6e02699311943e999af3309 /setuptools/_distutils/command | |
parent | 8b675a1cf5bde92381761666dbb59b527a611bb5 (diff) | |
parent | 1845a34d7151718ee65bbb6e392b41bf404e1bc4 (diff) | |
download | python-setuptools-git-0bf43816f5d09ce1a2e0fe13de013aa36962d685.tar.gz |
Merge https://github.com/pypa/distutils
Diffstat (limited to 'setuptools/_distutils/command')
-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( |