[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Python package with some rust dependency
From: |
Carlo Zancanaro |
Subject: |
Re: Python package with some rust dependency |
Date: |
Sat, 17 Feb 2024 22:50:37 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Alexis,
On Fri, Feb 16 2024, Alexis Simon wrote:
> ```
> error: in phase 'check-python-module': uncaught exception:
> wrong-type-arg "apply" "Apply to non-list: ~S" (#f) (#f)
> phase `check-python-module' failed after 0.0 seconds
> ...
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure apply: Apply to non-list: #f
> ```
This error sounds like you're trying to call #f as a function. Since
this is happening in the 'check-python-module phase, we can look at this
code:
> (add-after 'install-python-module 'check-python-module
> (lambda* (#:key inputs #:allow-other-keys #:rest args)
> (apply (assoc-ref py:%standard-phases 'check) args)))
I assume that (assoc-ref py:%standard-phases 'check) is returning #f,
which is causing the error. Given you don't use inputs, you could try
the same thing as you've done for the other phases like:
(add-after 'install-python-module 'check-python-module
(assoc-ref py:%standard-phases 'check))
But I'm not sure that will help you if the assoc-ref is really returning
#f. I guess in the worst case you could just leave out the check phase
entirely.
Also, as an aside, I'm not sure where the 'prepare-python-module phase
is coming from. Does it actually exist?
Carlo
- Python package with some rust dependency, Alexis Simon, 2024/02/11
- Re: Python package with some rust dependency, Carlo Zancanaro, 2024/02/12
- Re: Python package with some rust dependency, Alexis Simon, 2024/02/13
- Re: Python package with some rust dependency, Carlo Zancanaro, 2024/02/13
- Re: Python package with some rust dependency, Alexis Simon, 2024/02/13
- Re: Python package with some rust dependency, Alexis Simon, 2024/02/16
- Re: Python package with some rust dependency, Alexis Simon, 2024/02/16
- Re: Python package with some rust dependency,
Carlo Zancanaro <=
- Re: Python package with some rust dependency, Alexis Simon, 2024/02/17
- Re: Python package with some rust dependency, Alexis Simon, 2024/02/17
- Re: Python package with some rust dependency, Carlo Zancanaro, 2024/02/17