Skip to content

TOOL-30782 declare the python3-setuptools build dep - #78

Merged
prakashsurya merged 1 commit into
developfrom
projects/tool-30782-declare-build-deps
Aug 10, 2026
Merged

prakashsurya merged 1 commit into
developfrom
projects/tool-30782-declare-build-deps

Conversation

@prakashsurya

Copy link
Copy Markdown

Problem

setup.py imports setuptools without debian/control declaring it, so the build relies on something else pulling it in. That holds on noble (Python 3.12 still ships it) and stops holding on Python 3.14:

ModuleNotFoundError: No module named 'setuptools'
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.14 --parallel=2 returned exit code 13

Solution

The solution is to declare it. python3-setuptools is present in noble (68.1.2-2ubuntu1, verified against the develop mirror), so this is a no-op on this branch — it removes the implicit dependency rather than waiting for the cutover to force it.

Already landed on os-upgrade (#77), where it is load-bearing. Same change went to crash-python and savedump for the identical failure. Raising it here so it is one fewer change to re-land at the Ubuntu 26.04 cutover.

Testing Done

Not separately built on this branch. The identical change builds clean against Python 3.14 on os-upgrade, which is the case that exercises it; on noble the dependency was already satisfied implicitly.

setup.py imports setuptools without it being declared as a build dependency, so
the build relies on something else pulling it in. That holds on noble's Python
3.12 and stops holding on 3.14, which no longer ships it:

  ModuleNotFoundError: No module named 'setuptools'

Declaring it is a no-op here and removes the implicit dependency.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@prakashsurya
prakashsurya enabled auto-merge (squash) August 10, 2026 14:41
@prakashsurya
prakashsurya merged commit ab9d0be into develop Aug 10, 2026
3 of 10 checks passed
@prakashsurya
prakashsurya deleted the projects/tool-30782-declare-build-deps branch August 10, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants