mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
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:
parent
e8ae96ae61
commit
04b5fb9262
1 changed files with 9 additions and 7 deletions
|
@ -402,13 +402,15 @@ (define-public python-efl
|
|||
(modules '((guix build utils)))
|
||||
;; Remove files generated by Cython
|
||||
(snippet
|
||||
'(begin
|
||||
(copy-file "efl/dbus_mainloop/e_dbus.c" "efl/dbus_mainloop/e_dbus.q")
|
||||
(for-each delete-file (find-files "efl" ".*\\.c$"))
|
||||
(delete-file "efl/eo/efl.eo_api.h")
|
||||
(copy-file "efl/dbus_mainloop/e_dbus.q" "efl/dbus_mainloop/e_dbus.c")
|
||||
(delete-file "efl/dbus_mainloop/e_dbus.q")
|
||||
#t))))
|
||||
'(begin
|
||||
(for-each (lambda (file)
|
||||
(let ((generated-file
|
||||
(string-append (string-drop-right file 3) "c")))
|
||||
(when (file-exists? generated-file)
|
||||
(delete-file generated-file))))
|
||||
(find-files "efl" "\\.pyx$"))
|
||||
(delete-file "efl/eo/efl.eo_api.h")
|
||||
#t))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
|
|
Loading…
Reference in a new issue