buildPythonPackage: don't do build_ext if not needed

This commit is contained in:
Domen Kožar 2015-11-19 16:21:45 +01:00
parent 4b23328e39
commit 9bf99a5a4d

View File

@ -77,7 +77,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled"] // {
buildPhase = attrs.buildPhase or ''
runHook preBuild
cp ${setuppy} nix_run_setup.py
${python.interpreter} nix_run_setup.py build_ext ${lib.concatStringsSep " " setupPyBuildFlags} bdist_wheel
${python.interpreter} nix_run_setup.py ${lib.optionalString (setupPyBuildFlags != []) ("build_ext " + (lib.concatStringsSep " " setupPyBuildFlags))} bdist_wheel
runHook postBuild
'';