You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add "cargo" to the charm plugin build dependencies for deb based charms (see PR #2005).
I'm not 100% sure what's needed for yum and dnf systems.
Why it needs to get done
It's increasingly common that some python packages require a rust compiler at build time. We first noticed this a few months ago in the Juju SDK's 'Write your first Kubernetes charm' tutorial. Here we needed to addcargo to build-packages for the charmpart when adding cos-lite.
This came up again recently with the 2023 Operator Day tutorial (video, repo) that most new starters are asked to do. Here the need for cargo comes from adding the traefik_k8s.v2.ingress lib, because it includes the popular PyPI package pydantic (note: the lib is using PYDEPS). We considered another documentation fix here (which would have to include both the tutorial and the ingress lib, as well as any other libs using pydantic), but it seems like it might be a better idea to just include cargo in the charm plugin's build dependencies by default.
The text was updated successfully, but these errors were encountered:
What needs to get done
Add
"cargo"
to the charm plugin build dependencies for deb based charms (see PR #2005).I'm not 100% sure what's needed for
yum
anddnf
systems.Why it needs to get done
It's increasingly common that some python packages require a rust compiler at build time. We first noticed this a few months ago in the Juju SDK's 'Write your first Kubernetes charm' tutorial. Here we needed to add
cargo
tobuild-packages
for thecharm
part
when adding cos-lite.This came up again recently with the 2023 Operator Day tutorial (video, repo) that most new starters are asked to do. Here the need for
cargo
comes from adding thetraefik_k8s.v2.ingress
lib, because it includes the popular PyPI packagepydantic
(note: the lib is usingPYDEPS
). We considered another documentation fix here (which would have to include both the tutorial and theingress
lib, as well as any other libs usingpydantic
), but it seems like it might be a better idea to just includecargo
in the charm plugin's build dependencies by default.The text was updated successfully, but these errors were encountered: