Re: Python package with some rust dependency

2024-02-17 Thread Carlo Zancanaro
On Sat, Feb 17 2024, Alexis Simon wrote: > On 17/02/2024 03:50, Carlo Zancanaro wrote: >> Also, as an aside, I'm not sure where the 'prepare-python-module >> phase is coming from. Does it actually exist? > > This is a very good question I had myself and to which I couldn't find > the answer. I foun

Re: Python package with some rust dependency

2024-02-17 Thread Alexis Simon
for reference, I finally managed to get this working. See attached file. Thanks for the help Alexis On 17/02/2024 08:46, Alexis Simon wrote: On 17/02/2024 03:50, Carlo Zancanaro wrote: Hi Alexis, On Fri, Feb 16 2024, Alexis Simon wrote: ``` error: in phase 'check-python-module': uncaught ex

Re: Python package with some rust dependency

2024-02-17 Thread Alexis Simon
On 17/02/2024 03:50, Carlo Zancanaro wrote: 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:16

Re: Python package with some rust dependency

2024-02-17 Thread Carlo Zancanaro
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: >

Re: Python package with some rust dependency

2024-02-16 Thread Alexis Simon
Hi, So I think I'm nearly there (part of the scm attached). The last thing I'd like to do is run the python tests inside the cargo-build-system but couldn't find an example of it. I don't understand how to do that. I get the following error, which is most probably me not knowing how to writ

Re: Python package with some rust dependency

2024-02-15 Thread Alexis Simon
Hi, So right now I'm trying to go the splitting in two packages way, similar to what is done for python-cryptography. So I managed to build the first one that produces a header file in the store /gnu/store/*/lib/header.h In the second package, I don't get how to copy this file inside the b

Re: Python package with some rust dependency

2024-02-13 Thread Alexis Simon
Fair enough, I just meant that it's pretty hard as a newcomer to know which build system You're supposed to use to start with when encountering a project where several languages are used. Alexis On 13/02/2024 13:46, Carlo Zancanaro wrote: On Tue, Feb 13 2024, Alexis Simon wrote: Ok, this see

Re: Python package with some rust dependency

2024-02-13 Thread Carlo Zancanaro
On Tue, Feb 13 2024, Alexis Simon wrote: > Ok, this seems really counter intuitive though to go and use the cargo > build system for a python package only have a tiny part in rust. I'm not sure why this is counter-intuitive. The existence of any rust at all means you need to build rust code. The n

Re: Python package with some rust dependency

2024-02-13 Thread Alexis Simon
Thanks a lot Carlo I see what you mean there, but I'm probably out of my depth in terms of guix/guile knowledge so this will probably have to wait for me to level up. On 12/02/2024 15:29, Carlo Zancanaro wrote: Hi Alexis, I don't really know much about building rust. Given this one repositor

Re: Python package with some rust dependency

2024-02-12 Thread Carlo Zancanaro
Hi Alexis, I don't really know much about building rust. Given this one repository has both, I wonder if it would make sense to build them separately (as two packages), and have one as an input of the other. Presumably this would mean the python package taking the rust package as an input, but th

Python package with some rust dependency

2024-02-11 Thread Alexis Simon
Hi, I've been trying to package a science python software that mixes some C++ and rust dependencies. https://github.com/molpopgen/fwdpy11 I'm stuck in how to handle this. Going the pyproject-build-system way, the cargo part errors at accessing crates.io as would be expected, I guess I should