Skip to content

How to build and deploy a pip package with multiple different rust --features flags? #1669

Answered by LLukas22
LLukas22 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok after some thinkering i couldn't get the wrapper crates to work. I solved my problem by introducing another build step, which patches the name field in the pyproject.toml file to a value configurable via the environment. This way i have no changes in my "cpu-only" CI pipeline but i can simply change the package name for the "cuda","opencl" and "metal" pipelines by adding another step into the pipeline.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@konstin
Comment options

@LLukas22
Comment options

@konstin
Comment options

@LLukas22
Comment options

Answer selected by konstin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants