Skip to content

Commit 896bd8b

Browse files
committed
Force macOS target version when building using pip.
1 parent 39f25f0 commit 896bd8b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/pip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ def main():
249249
print("Overriding CXX variable to Nuitka-Python used '%s' ..." % cxx_config_var)
250250
os.environ["CXX"] = cxx_config_var
251251

252+
if platform.system() == "Darwin":
253+
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9"
254+
252255
import site
253256

254257
for path in site.getsitepackages():

0 commit comments

Comments
 (0)