nixpkgs-suyu/pkgs
zimbatm c409f69480
pythonPackages.pip: make reproducible (#102222)
The previous attempt wasn't covering all of the bases. It relied on
invoking that pip-install-hook, and didn't apply to pip itself.

The core issue is that the generated .pyc files embed some of the
temporary paths, which are randomly generated. See
https://r13y.com/diff/bf8c3ca3148ebff9ecf41f294cc60b9f209c006d49699e356969ff32d736f1c6-8806a7cca91fdd300e48736bfcd57c4d0b54c1cc2fd61609f35143170862b59c.html

In this new attempt, the approach is to patch the TempFile
implementation directly, so that it creates stable temporary
directories. We also assume that if SOURCE_DATE_EPOCH is set, we are in
a scenario where reproducible builds are desirable and enter that
branch.

See also https://github.com/pypa/pip/issues/7808
2020-10-31 21:24:36 +01:00
..
applications git: 2.29.1 -> 2.29.2 2020-10-30 13:55:20 +01:00
build-support Merge branch 'master' into staging-next 2020-10-28 18:48:18 +01:00
common-updater
data Merge branch 'master' into staging-next 2020-10-28 18:48:18 +01:00
desktops
development pythonPackages.pip: make reproducible (#102222) 2020-10-31 21:24:36 +01:00
games
misc Merge branch 'staging-next' into staging 2020-10-28 18:48:56 +01:00
os-specific libtapi: add homepage and description, use pname 2020-10-29 14:05:46 -07:00
pkgs-lib
servers Merge branch 'staging-next' into staging 2020-10-28 18:48:56 +01:00
shells Merge branch 'master' into staging-next 2020-10-28 18:48:18 +01:00
stdenv
test
tools Merge branch 'staging-next' into staging 2020-10-28 18:48:56 +01:00
top-level Merge branch 'staging-next' into staging 2020-10-28 18:48:56 +01:00