Skip to content

Commit

Permalink
build(snap): force pip to build all deps (canonical#673)
Browse files Browse the repository at this point in the history
This allows us to use recent tooling to compile those C- or Rust-backed wheels, like Cryptography and Pydantic.
  • Loading branch information
tigarmo authored Sep 3, 2024
1 parent a66a87f commit f078526
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ parts:
- requirements.txt
build-attributes:
- enable-patchelf
build-packages:
- cargo
build-environment:
- "CFLAGS": "$(pkg-config python-3.10 yaml-0.1 --cflags)"
- "PIP_NO_BINARY": ":all:"
organize:
bin/craftctl: libexec/rockcraft/craftctl
override-build: |
Expand Down

0 comments on commit f078526

Please sign in to comment.