3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: python-magic: Disable egg compression.

Reported by Troy Sankey <sankeytms@gmail.com>.

* gnu/packages/python.scm (python-magic, python2-magic)[arguments]: Add
'disable-egg-compression' phase.
This commit is contained in:
Leo Famulari 2016-08-23 12:45:53 -04:00
parent 557d332898
commit 7743268658
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -8737,7 +8737,14 @@ is made as zipfile like as possible.")
(substitute* "magic.py"
(("ctypes.util.find_library\\('magic'\\)")
(string-append "'" file "/lib/libmagic.so'")))
#t))))))
#t)))
(add-before 'install 'disable-egg-compression
(lambda _
(let ((port (open-file "setup.cfg" "a")))
(display "\n[easy_install]\nzip_ok = 0\n"
port)
(close-port port)
#t))))))
(native-inputs
`(("python-setuptools" ,python-setuptools)))
(inputs