Running charmcraft pack recently has been taking quite a long time, sometimes upwards of 30mins and in 2 cases more than 2 hours without completing. In most cases, I’m re-packing the charm after making changes. I’ve re-installed charmcraft and no change. Restarting the computer has helped sometimes.
Charmcraft version: 3.2.1
LXD version: 6.1
Ubuntu: 24.04.1 LTS
Here’s an example of a build: https://pastebin.com/5G0V31zn
Edit. This problem looks like a similar problem as asked and resolved here
It looks like the majority of the time taken from your log is in building the pyyaml dependency for your charm.
What steps are you taking normally with the change and rebuild? (Specifically are you running charmcraft clean?) It should be reusing the built pyyaml wheel.