diff options
author | Leo Famulari <leo@famulari.name> | 2016-08-23 12:45:53 -0400 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2016-08-23 12:48:23 -0400 |
commit | 7743268658e0606bdd35e0bc429b88676ef27f96 (patch) | |
tree | 0e65189d2da9cad640275e71bd843c0f575e9518 /gnu/packages/python.scm | |
parent | 557d3328984ae97147af5f9e8c6d6653912ac5b6 (diff) | |
download | guix-patches-7743268658e0606bdd35e0bc429b88676ef27f96.tar guix-patches-7743268658e0606bdd35e0bc429b88676ef27f96.tar.gz |
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.
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r-- | gnu/packages/python.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 79b67a5b95..09452f3142 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -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 |