I have one weird case with the current pyproject-build-system on merge directories. IIU the backtrace corrrectly, it comes from a substitute* try with a binary file.
We should probably at least do something like that, or maybe even catch here. modified guix/build/pyproject-build-system.scm @@ -221,11 +221,12 @@ (define (expand-data-directory directory) (let ((dest-path (string-append destination "/" f))) (chmod dest-path #o755) - ;; PEP 427 recommends that installers rewrite - ;; this odd shebang. - (substitute* dest-path - (("#!python") - python-hashbang))))))) + (unless (elf-file? dest-path) + ;; PEP 427 recommends that installers rewrite + ;; this odd shebang. + (substitute* dest-path + (("#!python") + python-hashbang)))))))) ;; Data can be contained in arbitrary directory structures. Most ;; commonly it is used for share/. (let ((source (string-append directory "/data")) This is something to fix during the next python-team iteration.
backtrace
Description: Binary data
-- Best regards, Nicolas Graves