gnu: ganeti: Fix build failure.

This fixes a regression from 1ed567c872.

* gnu/packages/virtualization.scm (ganeti)[arguments]: Set PYTHONPATH before
generating bash completions, and adjust invocation to run the script directly.
This commit is contained in:
Marius Bakke 2021-10-13 22:19:38 +02:00
parent 8576d87a5e
commit 641b31de5e
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -680,7 +680,9 @@ (define-public ganeti
""))))
(add-after 'build 'build-bash-completions
(lambda _
(invoke "python" "-m" "./autotools/build-bash-completion")))
(setenv "PYTHONPATH" ".")
(invoke "./autotools/build-bash-completion")
(unsetenv "PYTHONPATH")))
(add-before 'check 'pre-check
(lambda* (#:key inputs #:allow-other-keys)
;; Set TZDIR so that time zones are found.