Archived
1
0
Fork 0

gnu: python-efl: Use regex to delete cythonized files.

* gnu/packages/enlightenment.scm (python-efl)[source]: Adjust snippet to
delete cythonized files based on a regex pattern.
This commit is contained in:
Efraim Flashner 2020-09-01 15:40:03 +03:00
parent e8ae96ae61
commit 04b5fb9262
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -402,13 +402,15 @@ embedded systems.")
(modules '((guix build utils))) (modules '((guix build utils)))
;; Remove files generated by Cython ;; Remove files generated by Cython
(snippet (snippet
'(begin '(begin
(copy-file "efl/dbus_mainloop/e_dbus.c" "efl/dbus_mainloop/e_dbus.q") (for-each (lambda (file)
(for-each delete-file (find-files "efl" ".*\\.c$")) (let ((generated-file
(delete-file "efl/eo/efl.eo_api.h") (string-append (string-drop-right file 3) "c")))
(copy-file "efl/dbus_mainloop/e_dbus.q" "efl/dbus_mainloop/e_dbus.c") (when (file-exists? generated-file)
(delete-file "efl/dbus_mainloop/e_dbus.q") (delete-file generated-file))))
#t)))) (find-files "efl" "\\.pyx$"))
(delete-file "efl/eo/efl.eo_api.h")
#t))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases '(#:phases