Skip to content

Commit

Permalink
Migrate python3Packages.dlib away from setup.py test (#348185)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 authored Oct 21, 2024
2 parents 6bd2184 + c110ddc commit baef844
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pkgs/development/python-modules/dlib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
buildPythonPackage,
dlib,
python,
pytest,
pytestCheckHook,
more-itertools,
sse4Support ? stdenv.hostPlatform.sse4_1Support,
avxSupport ? stdenv.hostPlatform.avxSupport,
Expand All @@ -24,7 +24,7 @@ buildPythonPackage {
patches = [ ./build-cores.patch ];

nativeCheckInputs = [
pytest
pytestCheckHook
more-itertools
];

Expand All @@ -34,13 +34,6 @@ buildPythonPackage {
--replace "pytest==3.8" "pytest"
'';

# although AVX can be enabled, we never test with it. Some Hydra machines
# fail because of this, however their build results are probably used on hardware
# with AVX support.
checkPhase = ''
${python.interpreter} nix_run_setup test --no USE_AVX_INSTRUCTIONS
'';

setupPyBuildFlags = [
"--set USE_SSE4_INSTRUCTIONS=${if sse4Support then "yes" else "no"}"
"--set USE_AVX_INSTRUCTIONS=${if avxSupport then "yes" else "no"}"
Expand Down

0 comments on commit baef844

Please sign in to comment.