python310Packages.numcodecs: condition avx2 support

This commit is contained in:
Weijia Wang 2023-07-05 14:12:23 +03:00
parent 82268b7ea9
commit 44779d9ee7

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, isPy27
@ -37,6 +38,10 @@ buildPythonPackage rec {
msgpack
];
preBuild = if (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) then ''
export DISABLE_NUMCODECS_AVX2=
'' else null;
nativeCheckInputs = [
pytestCheckHook
];