Merge pull request #241663 from wegank/numcodecs-avx2

python310Packages.numcodecs: condition avx2 support
This commit is contained in:
Weijia Wang
2023-07-05 21:55:56 +03:00
committed by GitHub
@@ -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
];