Hi Guix, Invoke's code contains a reference to `/bin/bash`. This path does not exist in the build environment of another package I am working on. I don't know why it seems to work for some other packages, thought !? Best regards Tanguy Le Carrour (2): gnu: python-invoke: Patch reference to bash. gnu: python-invoke: Update to 1.5.0. gnu/packages/python-xyz.scm | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) -- 2.30.0
* gnu/packages/python-xyz.scm (python-invoke)[arguments]: Patch the reference to 'bash' in the source. [inputs]: Add bash. --- gnu/packages/python-xyz.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d08e23936c..de36222bba 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15129,7 +15129,19 @@ projects.") (build-system python-build-system) (arguments ;; XXX: Requires many dependencies that are not yet in Guix. - `(#:tests? #f)) + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-bash-path + (lambda* (#:key inputs #:allow-other-keys) + (let ((bash (assoc-ref inputs "bash"))) + (substitute* "invoke/config.py" + (("shell = \"/bin/bash\"") + (string-append "shell = \"" bash "/bin/bash\"")) + ) + #t)))))) + (inputs + `(("bash" ,bash-minimal))) (synopsis "Pythonic task execution") (description "Invoke is a Python task execution tool and library, drawing inspiration -- 2.30.0
* gnu/packages/python-xyz.scm (python-invoke): Update to 1.5.0. --- gnu/packages/python-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index de36222bba..3f83c877b4 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -15119,13 +15119,13 @@ projects.") (package (name "python-invoke") (home-page "https://www.pyinvoke.org/") - (version "1.4.1") + (version "1.5.0") (source (origin (method url-fetch) (uri (pypi-uri "invoke" version)) (sha256 (base32 - "0pg1lpl4583z83i12262v72y1a4cxdcxi7vqhl8dpqv9wszj6gyy")))) + "0l16v7zcbgi36z6pvmdrs5q4ks8lalcafi5d9nhrpcjzbc3n1igh")))) (build-system python-build-system) (arguments ;; XXX: Requires many dependencies that are not yet in Guix. -- 2.30.0
Tanguy Le Carrour <tanguy@bioneland.org> writes:
> Hi Guix,
>
> Invoke's code contains a reference to `/bin/bash`. This path does not exist
> in the build environment of another package I am working on. I don't
> know why it seems to work for some other packages, thought !?
I think they'll failed too unless they configured the shell somehow...
Pushed, thank you!
Hi, Excerpts from 宋文武's message of February 12, 2021 1:16 pm: > Tanguy Le Carrour <tanguy@bioneland.org> writes: > >> Hi Guix, >> >> Invoke's code contains a reference to `/bin/bash`. This path does not exist >> in the build environment of another package I am working on. I don't >> know why it seems to work for some other packages, thought !? > I think they'll failed too unless they configured the shell somehow... You right! I figured out that I had myself the `INVOKE_RUN_SHELL` envvar set. > Pushed, thank you! Thanks! -- Tanguy