me
/
guix
Archived
1
0
Fork 0

gnu: python-cloud-init: Move files.

* gnu/packages/python-web.scm (python-cloud-init)[arguments]: Add phase
'move-files to move data files out of site-packages directory.

Change-Id: I1322b990226174283d724539a98f7470221e9058
master
Ricardo Wurmus 2024-07-04 16:44:53 +02:00
parent 6cfc88e3be
commit 126dde2fb5
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 13 additions and 5 deletions

View File

@ -7455,11 +7455,19 @@ Encoding for HTTP.")
" and not test_subp_combined_stderr_stdout"
" and not test_handle_part"))
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'patch-references
(lambda _
(substitute* "tests/unittests/cmd/test_clean.py"
(("#!/bin/sh") (string-append "#!" (which "sh")))))))))
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-references
(lambda _
(substitute* "tests/unittests/cmd/test_clean.py"
(("#!/bin/sh") (string-append "#!" (which "sh"))))))
(add-after 'install 'move-files
(lambda* (#:key inputs outputs #:allow-other-keys)
(for-each (lambda (dir)
(let ((source (string-append (site-packages inputs outputs) "/" dir))
(target (string-append #$output "/" (basename dir))))
(copy-recursively source target)
(delete-file-recursively source)))
(list "etc" "lib" "usr/lib" "usr/share")))))))
(propagated-inputs
(list python-configobj
python-jinja2