Allow for modifications to build environment of "charmcraft build" to accomodate for extra prerequisites
Metadata
Current evaluation
Closed as already supported: charm-python-packages installs Python prerequisites before charm requirements. Ordering was later made explicit in Charmcraft 3.2 by PR #1727.
Resolution: closed not a bug
Reason: Maintainer facundobatista explained on 2022-03-03 that pre-requirement Python packages were already supported and linked setup guidance, so no new flag was needed. Later issue #1664 identified an ordering guarantee gap; PR #1727 (commit 51a55f73) fixed it in Charmcraft 3.2.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Closed as already supported: charm-python-packages installs Python prerequisites before charm requirements. Ordering was later made explicit in Charmcraft 3.2 by PR #1727. | |
| stealth/space-bunny-alpha | — | closed not a bug | Closed as already supported: Charmcraft’s build-packages configuration installs setuptools or pip before requirements, as confirmed by maintainer facundobatista on 2022-03-03. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed. The requested feature already exists. Users can pre-install packages like setuptools or pip before processing requirements.txt by specifying them in the charmcraft configuration, as detailed in the linked documentation. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without code changes. Maintainer clarified that the requested functionality already exists by specifying prerequisite packages to install before requirements, pointing to existing documentation. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as already implemented. Maintainers confirmed that specifying packages to install before requirements is already supported, providing a forum link for usage. No code changes required. |
Update history
No update history recorded yet.
Related work
-
Related To:
jinja#1610
(confidence 100%)
Underlying Jinja installation report cited by the reporter.
-
Related To:
charmcraft#1664
(confidence 99%)
Later tracked the missing guarantee that charm-python-packages installs before requirements.
-
Likely Fixed By:
charmcraft#1727
(confidence 99%)
Merged as commit 51a55f73, making prerequisite installation occur before requirements and charm libraries.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1664 `charm-python-packages` does not guarantee these packages are installed before packages in `requirements.txt` | charmcraft | closed | Fixed in Charmcraft 3.2 by merged PR #1727 (commit 51a55f73), which installs charm-python-packages before requirements and charm libraries. | |
| #553 parts,charm_builder: add charm-python-packages plugin property (CRAFT-552) | charmcraft | merged | Merged PR #553 added charm-python-packages, installing listed Python packages before requirements dependencies; implementation landed in commit 4b2d291b. | |
| #555 Charmcraft doesn't allow to pull non-published operator framework | charmcraft | closed | Closed as a duplicate of canonical/charmcraft#498; Git-based Python requirements work when git is declared in the charm part's build-packages. |