← Back to issue list

Fix pip installation

View original Github issue

Metadata

Project
charmcraft
Number
#10
Type
pull request
State
merged
Author
knkski
Labels
Created
Updated
Closed

Current evaluation

Merged a fix for pip installation by using setuptools to include the charmcraft.commands module and correcting the entrypoint to reference the main function. Approved by reviewers and passed CI checks.

Suggested action:

No scores available.

Issue body

Installing via pip requires the `charmcraft.commands` module to be included in the list of modules to install, so switching to a setuptools convenience function that finds all available modules. The `charmcraft` entrypoint was also pointing at the `main` module instead of the `main` function.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a fix for pip installation by using setuptools to include the charmcraft.commands module and correcting the entrypoint to reference the main function. Approved by reviewers and passed CI checks.
qwen3.6-35b-a3b-mtp-q6 Merged a fix for pip installation by switching to setuptools module auto-discovery to include charmcraft.commands and correcting the entrypoint to reference the main function instead of the module.
qwen3.6-35b-a3b-mtp-q6 Merged a pip installation fix that uses setuptools module auto-discovery and corrects the charmcraft entrypoint to target the main function instead of the module.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1891 fix(charm_builder): force-install pip charmcraft merged Merged hotfix for 2.x forcing pip installation in the charm_builder venv, resolving #1456. Approved by two reviewers, passed CI, and merged successfully.
75%
#1892 fix(charm_builder): force-install pip charmcraft merged Merged hotfix forcing pip installation in the virtual environment when previously skipped. Resolves #1456 for the 3.x branch. Approved by two reviewers and passed CI checks.
70%