GNU bug report logs -
#20765
Python .egg files must not be compressed
Previous Next
Reported by: ludo <at> gnu.org (Ludovic Courtès)
Date: Sun, 7 Jun 2015 20:38:02 UTC
Severity: serious
Done: Leo Famulari <leo <at> famulari.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#20765: Python .egg files must not be compressed
which was filed against the guix package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 20765 <at> debbugs.gnu.org.
--
20765: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From what I can see, this bug is fixed by the new Python build system
introduced in commit 03e856ddf5d28bc61144effb1a393b73cb4a2d9f.
Please re-open the bug if I am mistaken.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
The other day on IRC Ricardo and 宋文武 noted that python-pillow
currently comes with a compressed egg. Because it is compressed, the
daemon’s conservative scanning fails to see what store items it refers
to; in particular Ricardo noted that on his machine, python-pillow
refers to a non-existent store item for OpenJPEG.
To fix that, python-build-system must be tweaked to ask for uncompressed
eggs. I tried the attached patch, which uses the ‘--always-unzip’
option of easyinstall.
Unfortunately, that option is unsupported by some setup.py, such as that
of setuptools itself.
What would be the right way to do that?
TIA. :-)
Ludo’.
[Message part 5 (text/x-patch, inline)]
--- a/guix/build/python-build-system.scm
+++ b/guix/build/python-build-system.scm
@@ -60,14 +60,20 @@
#:allow-other-keys)
"Install a given Python package."
(let* ((out (assoc-ref outputs "out"))
- (params (append (list (string-append "--prefix=" out))
+ (params (cons* (string-append "--prefix=" out)
+
+ ;; Make sure the .egg files are kept unzipped,
+ ;; otherwise the daemon's conservative scanning may
+ ;; not find store references embedded in it.
+ "--always-unzip"
+
configure-flags))
(python-version (get-python-version (assoc-ref inputs "python")))
(old-path (getenv "PYTHONPATH"))
(add-path (string-append out "/lib/python" python-version
"/site-packages/")))
- ;; create the module installation directory and add it to PYTHONPATH
- ;; to make setuptools happy
+ ;; Create the module installation directory and add it to PYTHONPATH
+ ;; to make setuptools happy.
(mkdir-p add-path)
(setenv "PYTHONPATH"
(string-append (if old-path
This bug report was last modified 8 years and 214 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.