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
1 changed files with 8 additions and 1 deletions

View File

@ -8737,7 +8737,14 @@ is made as zipfile like as possible.")
(substitute* "magic.py" (substitute* "magic.py"
(("ctypes.util.find_library\\('magic'\\)") (("ctypes.util.find_library\\('magic'\\)")
(string-append "'" file "/lib/libmagic.so'"))) (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 (native-inputs
`(("python-setuptools" ,python-setuptools))) `(("python-setuptools" ,python-setuptools)))
(inputs (inputs