me
/
guix
Archived
1
0
Fork 0

gnu: python-gevent: Remove cythonized files.

* gnu/packages/python-xyz.scm (python-gevent)[source]: Adjust snippet to
also remove generated cythonized files.
[native-inputs]: Add python-cython.
master
Efraim Flashner 2022-07-11 10:48:09 +03:00
parent 1b3b653aa0
commit 556a96fe21
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 24 additions and 3 deletions

View File

@ -16127,7 +16127,27 @@ graphviz.")
(snippet (snippet
'(begin '(begin
;; unbunding libev and c-ares ;; unbunding libev and c-ares
(delete-file-recursively "deps"))))) (delete-file-recursively "deps")
;; Remove cythonized files.
(with-directory-excursion "src/gevent"
(for-each delete-file
(append (list "resolver/cares.c"
"queue.c"
"local.c"
"libev/corecext.h"
"libev/corecext.c"
"greenlet.c"
"event.c"
"_waiter.c"
"_tracer.c"
"_semaphore.c"
"_imap.c"
"_ident.c"
"_hub_primitives.c"
"_hub_local.c"
"_greenlet_primitives.c"
"_abstract_linkable.c")
(find-files "." "\\.html$"))))))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:modules ((ice-9 ftw) `(#:modules ((ice-9 ftw)
@ -16215,8 +16235,9 @@ graphviz.")
(propagated-inputs (propagated-inputs
(list python-greenlet python-zope-event python-zope-interface)) (list python-greenlet python-zope-event python-zope-interface))
(native-inputs (native-inputs
;; For tests. (list python-cython
(list python-dnspython python-psutil python-objgraph)) ;; For tests.
python-dnspython python-psutil python-objgraph))
(inputs (inputs
(list c-ares libev)) (list c-ares libev))
(home-page "https://www.gevent.org/") (home-page "https://www.gevent.org/")