apply markers from wheelhouse.txt during installation#213
apply markers from wheelhouse.txt during installation#213addyess wants to merge 2 commits intocanonical:masterfrom
Conversation
|
Hi Adam (@addyess). This is an interesting case. I pondered it over the weekend, and wanted to recap where layer-basic's design fits (fitted?) into the process of building charms, and what the original design of the So (my understanding of the) design is/was:
In the OpenStack charms, we ran into largely the same problem that you have, and our response was to switch charm-tools to build binary charms. These are controlled by the Binary charms are thus (mostly) series specific, and are built in a lxd container of the same series. The wheels are binary wheels (i.e. have no build dependencies at all - which is very handy for, say, Therefore, before merging this, I wonder if your use-case might be solved by building binary charms and having per-base charms in the charmhub? |
|
I'm marking this as a draft PR due to it needing to re-considering mis-using the wheelhouse.txt which intends to direct charm build what goes INTO the source charm. Charmed-Kubernetes should really revise it's build process to consider binary wheel charms. Perhaps there's an alternative file like |
Encountering a situation where charmtools pushes a package into the built charm (
dataclasses) which can't be installed on focal or jammy because its not necessary.I believed I could limit the install in the environment with wheelhouse.txt like this:
but discovered that layer_basic ignores
wheelhouse.txtcompletelySo, this PR gives some authority to the wheelhouse.txt to imply markers during the pkg install