We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76f84ea commit ddb3818Copy full SHA for ddb3818
setup.py
@@ -54,6 +54,15 @@
54
"-DCYTHON_TRACE_NOGIL=1",
55
]
56
57
+if sys.platform == "darwin":
58
+ try:
59
+ if int(os.environ.get("MACOSX_DEPLOYMENT_TARGET", "0").split(".", 1)[0]) >= 11:
60
+ if "-arch" not in os.environ.get("CFLAGS", ""):
61
+ os.environ["CFLAGS"] += " -arch arm64 -arch x86_64"
62
+ os.environ["LDFLAGS"] += " -arch arm64 -arch x86_64"
63
+ except ValueError:
64
+ pass # probably cannot parse "MACOSX_DEPLOYMENT_TARGET"
65
+
66
67
with open('src/quicktions.pyx') as f:
68
version = re.search("__version__\s*=\s*'([^']+)'", f.read(2048)).group(1)
0 commit comments