build/python: Fix cythonize check phase.

* guix/build/python-build-system.scm (ensure-no-cythonized-files): Use
format when printing the warning.
This commit is contained in:
Efraim Flashner 2020-12-13 22:20:19 +02:00
parent 7016f8db7c
commit 72809abc9e
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -30,6 +30,7 @@ (define-module (guix build python-build-system)
#:use-module (guix build utils)
#:use-module (ice-9 match)
#:use-module (ice-9 ftw)
#:use-module (ice-9 format)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26)
#:export (%standard-phases
@ -274,7 +275,7 @@ (define* (ensure-no-cythonized-files #:rest _)
(let ((generated-file
(string-append (string-drop-right file 3) "c")))
(when (file-exists? generated-file)
(warning (G_ "Possible Cythonized file found: ~a~%") generated-file))))
(format #t "Possible Cythonized file found: ~a~%" generated-file))))
(find-files "." "\\.pyx$"))
#t)