rateslib icon indicating copy to clipboard operation
rateslib copied to clipboard

HELP: how to configure Conda-Forge Feedstock for Rust/Python Mixed Projects?

Open attack68 opened this issue 1 year ago • 2 comments

I currently have no idea how to configure Conda to cross-compile and build this project in Conda Forge.

Anyone with knowledge, please contact me:

https://github.com/conda-forge/rateslib-feedstock/pull/11#issuecomment-2143048604

attack68 avatar Jun 01 '24 07:06 attack68

See also https://conda.discourse.group/t/recipes-templates-for-python-project-with-rust-extensions/755/2

attack68 avatar Aug 20 '24 07:08 attack68

I've no experience of this myself, but I note from the conda discourse thread you were looking at pydantic as a sample. The pydantic package itself is pure python, the Rust extension is pydantic-core on which it depends.

The meta file for that is here: https://github.com/conda-forge/pydantic-core-feedstock/blob/main/recipe/meta.yaml

Note in particular how compilers have been added as required build dependencies.

Another package I've seen sited as a Rust example in another context is cryptography. It looks like it has a similar set-up: https://github.com/conda-forge/cryptography-feedstock/blob/main/recipe/meta.yaml#L52

Hope this might prove of some help.

NickAltmann avatar Sep 29 '24 20:09 NickAltmann

Thanks @NickAltmann I will take a look at this and see if I can piece something together from it.

attack68 avatar Oct 04 '24 21:10 attack68

closed as miraculously solved by above!

attack68 avatar Nov 22 '24 07:11 attack68