Skip to content

Commit df407e2

Browse files
committed
Address case when user has a specific target
Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
1 parent c7cef56 commit df407e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
if_win = True
1919
elif platform.system() in ["Linux", "Darwin"]:
2020
if_win = False
21-
if platform.system() == "Darwin":
21+
if platform.system() == "Darwin" and (
22+
"MACOSX_DEPLOYMENT_TARGET" not in os.environ or float(os.environ["MACOSX_DEPLOYMENT_TARGET"]) < 13.3
23+
):
2224
os.environ["MACOSX_DEPLOYMENT_TARGET"] = "13.3"
2325
else:
2426
raise SystemError("Only Windows, Linux, or MacOS is supported!")

0 commit comments

Comments
 (0)