1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
From: Colin Watson <cjwatson@debian.org>
Date: Sun, 8 Feb 2026 22:39:51 +0000
Subject: Remove run-time dependency on setuptools
https://github.com/thumbor/thumbor/pull/1699 added a run-time dependency
on `setuptools` with the rationale that Python 3.12 removed it from the
default dependencies. That would make sense if thumbor needed
`setuptools` at run-time. However, thumbor doesn't use `setuptools` at
run-time (or anything else shipped with it, such as `distutils` or
`pkg_resources`).
Of course `setuptools` is needed to run `setup.py` itself, but a
dependency expressed in `install_requires` has never done anything to
achieve that because `setuptools` has to be present in order to process
that dependency.
It therefore seems to make most sense to simply drop this dependency.
I suspect this may have been related to #1692. While I don't have an
easy way to test this locally, a modern `pip` should use
`pyproject.toml` and should therefore install `setuptools` as a result
of the `build-system.requires` setting that's already there (which is
the correct way to express this build-time dependency). However, if
that still doesn't work for some reason, then adding something like `pip
install setuptools` before `pip install -e.[tests]` would be a better
way to work around it.
Forwarded: https://github.com/thumbor/thumbor/pull/1789
Bug-Debian: https://bugs.debian.org/1125840
Last-Update: 2026-02-08
---
setup.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/setup.py b/setup.py
index 21c2ff7..38999d6 100644
--- a/setup.py
+++ b/setup.py
@@ -152,7 +152,6 @@ def run_setup(extension_modules=None):
"piexif==1.*,>=1.1.3",
"Pillow>=10.4.0,<11.0.0",
"pytz==2023.*,>=2023.3.post1",
- "setuptools==75.*,>=75.2.0",
"statsd==4.*,>=4.0.1",
"thumbor-plugins-gifv==0.*,>=0.1.5",
"tornado==6.*,>=6.4",
|