From 894fc3fe167ae523107d3efdd73d1adab3dd9c2c Mon Sep 17 00:00:00 2001 From: Guillaume Boutry Date: Fri, 21 Apr 2023 16:23:02 +0200 Subject: [PATCH] Add dependencies with native components as binary packages The build time is very long because of PIP having to fetch and build native components of the libraries. This change show a possible way to bypass this issue. This has implication regarding the platform it's running on. In this case, we know the charm is going to be run on a 22.04 container. Change-Id: I96e7effad26922e36c00178c8a087b0a2511b7bf --- charms/ovn-relay-k8s/charmcraft.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/charms/ovn-relay-k8s/charmcraft.yaml b/charms/ovn-relay-k8s/charmcraft.yaml index 17a923a3..eea1df04 100644 --- a/charms/ovn-relay-k8s/charmcraft.yaml +++ b/charms/ovn-relay-k8s/charmcraft.yaml @@ -25,3 +25,8 @@ parts: - pkg-config - rustc - cargo + charm-binary-python-packages: + - cryptography + - jsonschema + - jinja2 + - git+https://opendev.org/openstack/charm-ops-sunbeam#egg=ops_sunbeam