emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#20765: closed (Python .egg files must not be compr


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#20765: closed (Python .egg files must not be compressed)
Date: Sat, 17 Dec 2016 18:44:01 +0000

Your message dated Sat, 17 Dec 2016 13:43:34 -0500
with message-id <address@hidden>
and subject line Re: bug#20765: Compressed eggs (Python)
has caused the debbugs.gnu.org bug report #20765,
regarding Python .egg files must not be compressed
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
20765: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20765
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Python .egg files must not be compressed Date: Sun, 07 Jun 2015 22:37:19 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
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’.

--- 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

--- End Message ---
--- Begin Message --- Subject: Re: bug#20765: Compressed eggs (Python) Date: Sat, 17 Dec 2016 13:43:34 -0500 User-agent: Mutt/1.7.1 (2016-10-04)
>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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]