Python: reduce amount of warnings when building with buildPython*
By default all warnings were printed. This occasionally resulted in a lot of warnings leading to builds being killed. This commit reduces the amount of warnings printed.
This commit is contained in:
parent
cb4ff927a1
commit
c1e003ff2f
@ -101,6 +101,10 @@ toPythonModule (python.stdenv.mkDerivation (builtins.removeAttrs attrs [
|
|||||||
${python.interpreter} ${./catch_conflicts}/catch_conflicts.py
|
${python.interpreter} ${./catch_conflicts}/catch_conflicts.py
|
||||||
'' + attrs.postFixup or '''';
|
'' + attrs.postFixup or '''';
|
||||||
|
|
||||||
|
# Print fewer warnings so we have less noise in our logs
|
||||||
|
# The amount of warnings also caused builds to be terminated.
|
||||||
|
PYTHONWARNINGS="once";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
# default to python's platforms
|
# default to python's platforms
|
||||||
platforms = python.meta.platforms;
|
platforms = python.meta.platforms;
|
||||||
|
@ -24,7 +24,8 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
$out/bin/py.test -x testing/
|
# Re-enable warnings because the test suite relies on it.
|
||||||
|
PYTHONWARNINGS= $out/bin/py.test -x testing/
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user