mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 14:41:27 +00:00
Merge pull request #241663 from wegank/numcodecs-avx2
python310Packages.numcodecs: condition avx2 support
This commit is contained in:
commit
c7a47f4f38
@ -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
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user