pyodide/packages/numcodecs/patches/fixsetup.patch

16 lines
456 B
Diff

This patch disables SSE2 and AVX2 options
diff --git a/setup.py b/setup.py
index 3cf27db..74bdea5 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,9 @@ from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError, DistutilsExecError, \
DistutilsPlatformError
+os.environ['DISABLE_NUMCODECS_SSE2'] = "1"
+os.environ['DISABLE_NUMCODECS_AVX2'] = "1"
+
try:
from Cython.Build import cythonize
except ImportError: