summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-10-01 18:44:47 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-10-30 13:08:17 -0700
commitf0bb568b74c4a5fe2b897286fe05c10a9b929075 (patch)
tree5e82f66b531eee4eb8d484af0ea4b9a602814928 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent062a1496d614fedc66dab048b299d3259296af00 (diff)
pytest: new hook to delete pytest bytecode
In https://github.com/NixOS/nixpkgs/issues/139292 we found out that pytest leaves pytest-generated bytecode in install directory (as tests are ran after install). That bytecode is: - non-deterministic (was copied from cpython before cpython got support for deterministic bytecode) - unneeded after test run The change cleans bytecode up and provides a hook variable to avoid it if needed. Tested on `python39Packages.pytest-xdist` and `python27Packages.flaky` as: $ nix build -f. python39Packages.pytest-xdist $ nix build -f. python39Packages.pytest-xdist --rebuild $ nix build -f. python27Packages.flaky $ nix build -f. python27Packages.flaky --rebuild Closes: https://github.com/NixOS/nixpkgs/issues/139292
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions