Skip to content

Commit d1e89fd

Browse files
committed
Fix MacOS wheels platform tag
1 parent 946d521 commit d1e89fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpydist/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from distutils.command.install_lib import install_lib
4242
from distutils.core import Command
4343
from distutils.dir_util import mkpath, remove_tree
44-
from distutils.sysconfig import get_python_version
44+
from distutils.sysconfig import get_config_vars, get_python_version
4545
from distutils.version import LooseVersion
4646
from subprocess import check_call, Popen, PIPE
4747

@@ -57,6 +57,9 @@
5757
with open(version_py, "rb") as fp:
5858
exec(compile(fp.read(), version_py, "exec"))
5959

60+
if "MACOSX_DEPLOYMENT_TARGET" in get_config_vars():
61+
get_config_vars()["MACOSX_DEPLOYMENT_TARGET"] = "11.0"
62+
6063
COMMON_USER_OPTIONS = [
6164
("byte-code-only", None,
6265
"remove Python .py files; leave byte code .pyc only"),

0 commit comments

Comments
 (0)