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 d97da69 commit a511116Copy full SHA for a511116
tests/3-pythonscript-cython-only/setup.py
@@ -1,3 +1,4 @@
1
+import os
2
import platform
3
from setuptools import setup
4
from Cython.Build import cythonize
@@ -20,6 +21,8 @@
20
21
python_include_dir = next(Path(".").parent.glob("addons/pythonscript/*-*/include"))
22
else:
23
raise RuntimeError(f"Unsupported platform `{platform.system()}`")
24
+# Same idea: `sysconfig` defines CC=clang, but who knows if the current machine has it !
25
+os.environ.setdefault("CC", "cc")
26
27
28
# Work around cythonize's `include_path` parameter not configuring the C compiler
0 commit comments