Commit Graph

25 Commits

Author SHA1 Message Date
Frederik Rietdijk
4fa7f48d7c python3Packages.pip: 20.3.4 -> 21.0.1 2021-03-23 10:43:46 +01:00
Greg Roodt
f42250c70b pythonPackages.pip: 2.3 -> 2.3.4 2021-02-26 11:02:02 +01:00
Frederik Rietdijk
b0e372864a python3Packages.pip: 20.2.4 -> 20.3 2020-12-01 14:44:26 +01:00
Frederik Rietdijk
b66f954dfc python2.pkgs.pip: fix regression in 20.2 2020-11-05 16:10:05 +01:00
Frederik Rietdijk
75d9e713d9 python3.pkgs.pip: 20.1.1 -> 20.2.4
Reproducible builds of pyproject projects using pip is resolved.

Fixes https://github.com/pypa/pip/issues/7808
Fixes https://github.com/NixOS/nixpkgs/issues/81441

The more recent c409f69480 caused trouble
with pyproject troubles and had to be reverted anyway.
https://github.com/NixOS/nixpkgs/pull/102222#issuecomment-722380794

Revert "pythonPackages.pip: make reproducible (#102222)"

This reverts commit c409f69480.

Revert "python3Packages.pip: allow setting reproducible temporary directory via NIX_PIP_INSTALL_TMPDIR"

This reverts commit aedbade43e.
2020-11-05 15:44:14 +01:00
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
misuzu
aedbade43e python3Packages.pip: allow setting reproducible temporary directory via NIX_PIP_INSTALL_TMPDIR 2020-07-02 17:27:13 +02:00
Frederik Rietdijk
b4f85b97f5 python.pkgs.pip: 20.1 -> 20.1.1 2020-06-13 10:40:39 +02:00
Daiderd Jordan
b7ddbd52bd
treewide: replace SRI hashes 2020-06-01 15:24:19 +02:00
Frederik Rietdijk
193cdc7770 pythonPackages.pip: 20.0.2 -> 20.1 2020-05-11 22:12:08 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jonathan Ringer
5ca385e1e9 python3Packages.pip: 19.3.1 -> 20.0.2 2020-02-09 19:28:58 -08:00
Frederik Rietdijk
56727dc1ff Python: setuptools/wheel/pip now bootstrap from source
Since wheel support was introduced in 2015 we always relied on pre-built
wheels for bootstrapping. Now, we can bootstrap directly from the
sources of these packages in git.

The `bootstrapped-pip` packages is used to build `pip`, `setuptools` and `wheel`,
after which those packages are used to build everything else.

Note that when building `bootstrapped-pip` some errors are shown.
These are not important, the build actually does succeed and work as intended.
2019-10-20 19:48:00 +02:00
Frederik Rietdijk
445c68a1f7 python.pkgs.pip: 19.3 -> 19.3.1 2019-10-18 12:42:06 +02:00
Frederik Rietdijk
dc410db4ce pythonPackages.pip: 19.2.3 -> 19.3 2019-10-18 09:53:55 +02:00
Frederik Rietdijk
afe67e5493 python.pkgs.pip: 19.1.1 -> 19.2.3 2019-09-06 15:18:45 +02:00
Frederik Rietdijk
f7e28bf5d8 Split buildPythonPackage into setup hooks
This commit splits the `buildPythonPackage` into multiple setup hooks.

Generally, Python packages are built from source to wheels using `setuptools`.
The wheels are then installed with `pip`. Tests were often called with
`python setup.py test` but this is less common nowadays. Most projects
now use a different entry point for running tests, typically `pytest`
or `nosetests`.

Since the wheel format was introduced more tools were built to generate these,
e.g. `flit`. Since PEP 517 is provisionally accepted, defining a build-system
independent format (`pyproject.toml`), `pip` can now use that format to
execute the correct build-system.

In the past I've added support for PEP 517 (`pyproject`) to the Python
builder, resulting in a now rather large builder. Furthermore, it was not possible
to reuse components elsewhere. Therefore, the builder is now split into multiple
setup hooks.

The `setuptoolsCheckHook` is included now by default but in time it should
be removed from `buildPythonPackage` to make it easier to use another hook
(curently one has to pass in `dontUseSetuptoolsCheck`).
2019-09-06 15:18:45 +02:00
Frederik Rietdijk
592478be3a python: pip: 19.0.3 -> 19.1.1 2019-06-15 08:44:29 +02:00
Frederik Rietdijk
efdb9b322f python: pip: 19.0.2 -> 19.0.3 2019-02-23 20:05:18 +01:00
Frederik Rietdijk
ff4d22adfc python: pip: 18.1 -> 19.0.2 2019-02-17 14:40:32 +01:00
Frederik Rietdijk
474c78a3e5 python.pkgs.pip: 18.0 -> 18.1 2018-10-13 09:50:17 +02:00
Frederik Rietdijk
f0a0672040 python: pip: 10.0.1 -> 18.0 2018-07-22 16:52:48 +02:00
Frederik Rietdijk
e5f57757d0 python.pkgs.pip: 9.0.3 -> 10.0.1 2018-04-21 08:10:24 +02:00
Frederik Rietdijk
1ab32ba441 python: pip: 9.0.1 -> 9.0.3 2018-04-08 11:36:07 +02:00
Frederik Rietdijk
4421dbc217 python.pkgs.pip: move expression 2018-04-08 11:36:07 +02:00