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
commit c7a47f4f38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
];