Skip to content

Commit 0c1979c

Browse files
committed
Fix to handle patch numbers better
Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
1 parent df407e2 commit 0c1979c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
elif platform.system() in ["Linux", "Darwin"]:
2020
if_win = False
2121
if platform.system() == "Darwin" and (
22-
"MACOSX_DEPLOYMENT_TARGET" not in os.environ or float(os.environ["MACOSX_DEPLOYMENT_TARGET"]) < 13.3
22+
"MACOSX_DEPLOYMENT_TARGET" not in os.environ
23+
or tuple(map(int, os.environ["MACOSX_DEPLOYMENT_TARGET"].split("."))) < (13, 3)
2324
):
2425
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "13.3"
2526
else:

0 commit comments

Comments
 (0)