Commit 44779d9e authored by Weijia Wang's avatar Weijia Wang
Browse files

python310Packages.numcodecs: condition avx2 support

parent 82268b7e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
{ 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
  ];