mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: gunicorn: Remove unneeded runtime dependencies.
* gnu/packages/python-web.scm (gunicorn)[arguments]: Override 'wrap' phase.
This commit is contained in:
parent
d51daf25c4
commit
0f056f2c33
1 changed files with 16 additions and 2 deletions
|
@ -4730,8 +4730,22 @@ (define-public gunicorn
|
|||
(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)
|
||||
|
|
Loading…
Reference in a new issue