gnu: python-pillow: Disable egg compression.
Partly fixes <http://bugs.gnu.org/20765>. * gnu/packages/python.scm (python-pillow)[arguments]: Rewrite using 'modify-phases'. Add 'disable-egg-compression' phase.master
parent
6078594b13
commit
e5358a6bac
|
@ -3015,14 +3015,27 @@ services for your Python modules and applications.")
|
||||||
`(;; Used at runtime for pkg_resources
|
`(;; Used at runtime for pkg_resources
|
||||||
("python-setuptools" ,python-setuptools)))
|
("python-setuptools" ,python-setuptools)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (alist-cons-after
|
`(#:phases (modify-phases %standard-phases
|
||||||
'install 'check-installed
|
(add-before
|
||||||
(lambda _
|
'install 'disable-egg-compression
|
||||||
(begin
|
(lambda _
|
||||||
(setenv "HOME" (getcwd))
|
;; Leave the .egg uncompressed since compressing it would
|
||||||
(and (zero? (system* "python" "selftest.py" "--installed"))
|
;; prevent the GC from identifying run-time dependencies.
|
||||||
(zero? (system* "python" "test-installed.py")))))
|
;; See <http://bugs.gnu.org/20765>.
|
||||||
(alist-delete 'check %standard-phases))))
|
(let ((port (open-file "setup.cfg" "a")))
|
||||||
|
(display "\n[easy_install]\nzip_ok = 0\n"
|
||||||
|
port)
|
||||||
|
(close-port port)
|
||||||
|
#t)))
|
||||||
|
(add-after
|
||||||
|
'install 'check-installed
|
||||||
|
(lambda _
|
||||||
|
(begin
|
||||||
|
(setenv "HOME" (getcwd))
|
||||||
|
(and (zero? (system* "python" "selftest.py"
|
||||||
|
"--installed"))
|
||||||
|
(zero? (system* "python" "test-installed.py"))))))
|
||||||
|
(delete 'check))))
|
||||||
(home-page "https://pypi.python.org/pypi/Pillow")
|
(home-page "https://pypi.python.org/pypi/Pillow")
|
||||||
(synopsis "Fork of the Python Imaging Library")
|
(synopsis "Fork of the Python Imaging Library")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue