gnu: python: Do not install static libraries.

This is something Fedora already does since 2010, so it should be safe,
and saves a lot of space.

* gnu/packages/patches/python-2.7-no-static-lib.patch: New file.
* gnu/packages/patches/python-3-no-static-lib.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/python.scm (python-2.7, python-3): Use them.
This commit is contained in:
Julien Lepiller 2021-06-03 22:10:09 +02:00
parent 99d450b085
commit 8ce96d8447
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82
4 changed files with 151 additions and 2 deletions

View file

@ -150,7 +150,8 @@
"python-2.7-source-date-epoch.patch"
"python-2.7-adjust-tests.patch"
"python-cross-compile.patch"
"python-2.7-CVE-2021-3177.patch"))
"python-2.7-CVE-2021-3177.patch"
"python-2.7-no-static-lib.patch"))
(modules '((guix build utils)))
(snippet
'(begin
@ -421,7 +422,8 @@ data types.")
"python-3-deterministic-build-info.patch"
"python-3-fix-tests.patch"
"python-3-hurd-configure.patch"
"python-3-search-paths.patch"))
"python-3-search-paths.patch"
"python-3-no-static-lib.patch"))
(sha256
(base32
"10vdf46q5ldnzkprm8pldvr5a9hrdpxjv7mpzgdw6vj3cl318nhc"))