We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a6b714 commit 222efa9Copy full SHA for 222efa9
1 file changed
setup.py
@@ -39,9 +39,12 @@
39
LIBIGRAPH_FALLBACK_LIBRARIES = ["igraph"]
40
LIBIGRAPH_FALLBACK_LIBRARY_DIRS = []
41
42
-# Check whether we are compiling for PyPy. Headers will not be installed
43
-# for PyPy.
44
-SKIP_HEADER_INSTALL = (platform.python_implementation() == "PyPy") or (
+# Check whether we are compiling for PyPy or wasm with emscripten. Headers will
+# not be installed in these cases, or when the SKIP_HEADER_INSTALL envvar is
+# set explicitly.
45
+SKIP_HEADER_INSTALL = (
46
+ platform.python_implementation() == "PyPy" or
47
+ (sysconfig.get_config_var("HOST_GNU_TYPE") or "").endswith("emscripten") or
48
"SKIP_HEADER_INSTALL" in os.environ
49
)
50
0 commit comments