← Back to issue list

python plugin doesn't work with pyproject.toml based projects

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2008237
Type
issue
State
closed
Author
~toabctl
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Closed without resolution due to inactivity. The python plugin fails to build pyproject.toml projects correctly, omitting console_scripts from the resulting snap.

Suggested action:

No scores available.

Issue body

python projects move to pyproject.toml instead of using setup.py/setup.cfg . See https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/ . But such a project doesn't correctly build with snapcraft (tested version 7.2.9). The snapcraft call works fine and produces a snap, but the resulting snap isn't correct. Eg. it doesn't contain any console_scripts.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution due to inactivity. The python plugin fails to build pyproject.toml projects correctly, omitting console_scripts from the resulting snap.
qwen/qwen3.6-35b-a3b Closed without resolution, likely abandoned. The python plugin failed to correctly build pyproject.toml projects, resulting in snaps missing console_scripts. No comments or patches were submitted.
qwen3.6-35b-a3b-mtp-q6 The python plugin fails to correctly build pyproject.toml-based projects, omitting console_scripts. Closed without resolution or fix, remaining unresolved.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#747 Python plugin. `pip install .` failing because of `pyproject.toml` file craft-parts open Python plugin runs `pip install .` when pyproject.toml exists, failing for projects using it only for tool config. Issue is 823 days old with recent suggestion for heuristic fix.
72%