Move numcodecs build environment vars into meta.yaml file (#2833)

This commit is contained in:
Hood Chatham 2022-07-03 06:41:32 -07:00 committed by GitHub
parent 76a7334eb7
commit b905fcb172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 16 deletions

View File

@ -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:

View File

@ -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: