diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2022-06-21 11:48:56 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-06-21 11:49:44 +0300 |
commit | deeec484a6cdb95464ebd2527b16771935d113ec (patch) | |
tree | e2111a3564f181b56cd48f3b2accb4ffdf54d59d | |
parent | 2773cc89274d4af5d1b2a4586e0e041cd2d26a65 (diff) | |
download | guix-deeec484a6cdb95464ebd2527b16771935d113ec.tar.gz |
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.
-rw-r--r-- | gnu/packages/python-xyz.scm | 20 |
1 files changed, 19 insertions, 1 deletions
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 |