guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: python-pyzmq: Remove bundled and generated c


From: guix-commits
Subject: branch master updated: gnu: python-pyzmq: Remove bundled and generated code.
Date: Tue, 21 Jun 2022 04:50:53 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new deeec484a6 gnu: python-pyzmq: Remove bundled and generated code.
deeec484a6 is described below

commit deeec484a6cdb95464ebd2527b16771935d113ec
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jun 21 11:48:56 2022 +0300

    gnu: python-pyzmq: Remove bundled and generated code.
    
    * gnu/packages/python-xyz.scm (python-pyzmq)[source]: Add snippet to
    remove bundled source code and pre-cythonized files.
---
 gnu/packages/python-xyz.scm | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f19f0ed285..7e6fe74323 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9956,7 +9956,25 @@ applications.")
        (method url-fetch)
        (uri (pypi-uri "pyzmq" version))
        (sha256
-        (base32 "0737kizh53n4rjq1xbm6nhr0bq65xflg04i1d8fcky0nwwrw1pcf"))))
+        (base32 "0737kizh53n4rjq1xbm6nhr0bq65xflg04i1d8fcky0nwwrw1pcf"))
+       (snippet
+        #~(begin
+            (use-modules (guix build utils))
+            ;; The bundled zeromq source code.
+            (delete-file-recursively "bundled")
+            ;; Delete cythonized files.
+            (for-each delete-file
+                      (list "zmq/backend/cython/constants.c"
+                            "zmq/backend/cython/context.c"
+                            "zmq/backend/cython/_device.c"
+                            "zmq/backend/cython/error.c"
+                            "zmq/backend/cython/message.c"
+                            "zmq/backend/cython/_poll.c"
+                            "zmq/backend/cython/_proxy_steerable.c"
+                            "zmq/backend/cython/socket.c"
+                            "zmq/backend/cython/utils.c"
+                            "zmq/backend/cython/_version.c"
+                            "zmq/devices/monitoredqueue.c"))))))
     (build-system python-build-system)
     (arguments
      `(#:configure-flags



reply via email to

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