[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: gnu: gunicorn: Remove unneeded runtime dependencies.
From: |
guix-commits |
Subject: |
02/12: gnu: gunicorn: Remove unneeded runtime dependencies. |
Date: |
Thu, 6 May 2021 13:16:04 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 0f056f2c3360fe43ed12a554cca34617435fe8ee
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu May 6 01:01:58 2021 +0200
gnu: gunicorn: Remove unneeded runtime dependencies.
* gnu/packages/python-web.scm (gunicorn)[arguments]: Override 'wrap' phase.
---
gnu/packages/python-web.scm | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 8b6b667..4d6d478 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4730,8 +4730,22 @@ event loop. It is implemented in Cython and uses libuv
under the hood.")
(copy-recursively "examples" examples)
(for-each (lambda (file)
(copy-file file (string-append doc "/" file)))
- '("README.rst" "NOTICE" "LICENSE" "THANKS")))
- #t)))))
+ '("README.rst" "NOTICE" "LICENSE" "THANKS")))))
+ ;; XXX: The wrap phase includes native inputs on PYTHONPATH, (see
+ ;; <https://bugs.gnu.org/25235>), leading to an inflated closure
+ ;; size. Override it to only add the essential entries.
+ (replace 'wrap
+ (lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (python (assoc-ref (or native-inputs inputs) "python"))
+ (sitedir (string-append "/lib/python"
+ (python-version python)
+ "/site-packages")))
+ (wrap-program (string-append out "/bin/gunicorn")
+ `("PYTHONPATH" ":" prefix
+ ,(map (lambda (output)
+ (string-append output sitedir))
+ (list python out))))))))))
(native-inputs
`(("binutils" ,binutils) ;; for ctypes.util.find_library()
("python-aiohttp" ,python-aiohttp)
- branch master updated (ce7b202 -> dd52cb9), guix-commits, 2021/05/06
- 01/12: gnu: gunicorn: Respect '--without-tests'., guix-commits, 2021/05/06
- 02/12: gnu: gunicorn: Remove unneeded runtime dependencies.,
guix-commits <=
- 03/12: gnu: gunicorn: Update to 2.1.0., guix-commits, 2021/05/06
- 06/12: gnu: python-django: Update to 3.2.2., guix-commits, 2021/05/06
- 05/12: gnu: Remove python-pykka., guix-commits, 2021/05/06
- 08/12: gnu: python-flake8: Do not use the 'bootstrap' pytest., guix-commits, 2021/05/06
- 07/12: gnu: python-django@2.2: Update to 2.2.22., guix-commits, 2021/05/06
- 12/12: gnu: python-hacking: Update to 4.1.0., guix-commits, 2021/05/06
- 04/12: gnu: python-dnspython: Update to 2.1.0., guix-commits, 2021/05/06
- 10/12: gnu: python-flake8: Update to 3.9.1., guix-commits, 2021/05/06
- 09/12: gnu: python-flake8: Do not delete and recreate check phase., guix-commits, 2021/05/06
- 11/12: gnu: python-hacking: Fix build failure., guix-commits, 2021/05/06