Commit d7fb5d01 authored by Doron Behar's avatar Doron Behar
Browse files

python311Packages.numcodecs: simplify DISABLE_NUMCODECS_AVX2

parent 55026717
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -47,13 +47,9 @@ buildPythonPackage rec {
    # zfpy = [ zfpy ];
  };

  preBuild =
    if (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) then
      ''
        export DISABLE_NUMCODECS_AVX2=
      ''
    else
      null;
  preBuild = lib.optionalString (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) ''
    export DISABLE_NUMCODECS_AVX2=1
  '';

  nativeCheckInputs = [
    pytestCheckHook