mirror of https://github.com/pyodide/pyodide.git
Move numcodecs build environment vars into meta.yaml file (#2833)
This commit is contained in:
parent
76a7334eb7
commit
b905fcb172
|
@ -6,10 +6,11 @@ source:
|
|||
url: https://files.pythonhosted.org/packages/2c/b0/980143fa7467569fd81f0d00530c46dcf41ff790738261985dc10a26d4ec/numcodecs-0.9.1.tar.gz
|
||||
patches:
|
||||
- patches/fixblosc.patch
|
||||
- patches/fixsetup.patch
|
||||
- patches/fixzlib.patch
|
||||
build:
|
||||
script: |
|
||||
export DISABLE_NUMCODECS_SSE2=1
|
||||
export DISABLE_NUMCODECS_AVX2=1
|
||||
rm numcodecs/blosc.c
|
||||
requirements:
|
||||
run:
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
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:
|
Loading…
Reference in New Issue