diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-11-04 09:45:41 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-11-04 10:19:48 +0100 |
commit | c1e003ff2f8a43189d48b7194ec8556aa3d88641 (patch) | |
tree | 65be187f242452a6fbea2173ce35022293e0974b /pkgs/development/interpreters | |
parent | cb4ff927a15a62fa5b4131eb912df407f6aac3af (diff) | |
download | nixlib-c1e003ff2f8a43189d48b7194ec8556aa3d88641.tar nixlib-c1e003ff2f8a43189d48b7194ec8556aa3d88641.tar.gz nixlib-c1e003ff2f8a43189d48b7194ec8556aa3d88641.tar.bz2 nixlib-c1e003ff2f8a43189d48b7194ec8556aa3d88641.tar.lz nixlib-c1e003ff2f8a43189d48b7194ec8556aa3d88641.tar.xz nixlib-c1e003ff2f8a43189d48b7194ec8556aa3d88641.tar.zst nixlib-c1e003ff2f8a43189d48b7194ec8556aa3d88641.zip |
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.
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/mk-python-derivation.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 63ffdbb8c0ac..ef8ee4e5425b 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -101,6 +101,10 @@ toPythonModule (python.stdenv.mkDerivation (builtins.removeAttrs attrs [ ${python.interpreter} ${./catch_conflicts}/catch_conflicts.py '' + 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 = { # default to python's platforms platforms = python.meta.platforms; |