git: ad593a9d4d79 - main - */*: Add ${PY_SETUPTOOLS} to BUILD_DEPENDS

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Sat, 29 Jun 2024 05:04:54 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ad593a9d4d7957012965264a91f21667488ca1b2

commit ad593a9d4d7957012965264a91f21667488ca1b2
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-06-29 04:56:45 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-06-29 05:02:34 +0000

    */*: Add ${PY_SETUPTOOLS} to BUILD_DEPENDS
    
    Fix build when setuptools is removed from RUN_DEPENDS in
    Mk/Uses/python.mk.
    
    PR:             270510
    Approved by:    portmgr (blanket)
---
 astro/astrometry/Makefile                   | 3 ++-
 audio/py-pyradio/Makefile                   | 3 ++-
 audio/py-torchaudio/Makefile                | 3 ++-
 audio/qjackcapture/Makefile                 | 3 ++-
 biology/py-dnaio/Makefile                   | 3 ++-
 biology/py-macs3/Makefile                   | 3 ++-
 databases/mongodb44/Makefile                | 3 ++-
 databases/mongodb50/Makefile                | 3 ++-
 databases/mongodb60/Makefile                | 3 ++-
 databases/mongodb70/Makefile                | 3 ++-
 databases/py-snowddl/Makefile               | 1 +
 deskutils/calibre/Makefile                  | 1 +
 devel/py-cytoolz/Makefile                   | 3 ++-
 devel/py-nbclassic/Makefile                 | 3 ++-
 devel/py-preshed/Makefile                   | 1 +
 devel/py-qt5-pyqt/Makefile                  | 3 ++-
 devel/py-qt5-qscintilla2/Makefile           | 1 +
 devel/py-qt6-pyqt/Makefile                  | 5 +++--
 devel/py-qt6-qscintilla2/Makefile           | 1 +
 finance/py-financedatabase/Makefile         | 3 ++-
 graphics/opencolorio/Makefile               | 3 ++-
 graphics/py-ManimPango/Makefile             | 3 ++-
 graphics/py-python-poppler-qt5/Makefile     | 3 ++-
 graphics/py-qt6-3d/Makefile                 | 2 ++
 graphics/qgis-ltr/Makefile                  | 1 +
 graphics/qgis/Makefile                      | 1 +
 math/py-CyLP/Makefile                       | 1 +
 math/py-POT/Makefile                        | 2 +-
 math/py-hmmlearn/Makefile                   | 1 +
 math/py-or-tools/Makefile                   | 1 +
 misc/pytorch/Makefile                       | 1 +
 multimedia/gpodder/Makefile                 | 3 ++-
 multimedia/mythtv/Makefile                  | 3 ++-
 net/freeipa-client/Makefile                 | 3 ++-
 net/py-libdnet/Makefile                     | 1 +
 net/py-qt5-networkauth/Makefile             | 3 ++-
 net/py-qt6-networkauth/Makefile             | 2 ++
 print/system-config-printer/Makefile        | 3 ++-
 science/chemicalfun/Makefile                | 1 +
 science/psi4/Makefile                       | 1 +
 science/py-HofstadterTools/Makefile         | 3 ++-
 science/scidavis/Makefile                   | 7 ++++---
 security/sssd2/Makefile                     | 3 ++-
 textproc/py-pandoc-plantuml-filter/Makefile | 3 ++-
 www/chrome-gnome-shell/Makefile             | 3 ++-
 www/py-qt5-webengine/Makefile               | 4 +++-
 www/py-qt6-webengine/Makefile               | 2 ++
 www/varnish-libvmod-maxminddb/Makefile      | 3 ++-
 x11-toolkits/py-qt6-chart/Makefile          | 2 ++
 x11-toolkits/py-qt6-datavis3d/Makefile      | 2 ++
 50 files changed, 89 insertions(+), 34 deletions(-)

diff --git a/astro/astrometry/Makefile b/astro/astrometry/Makefile
index 712b39ca3d0f..600855636bb7 100644
--- a/astro/astrometry/Makefile
+++ b/astro/astrometry/Makefile
@@ -13,7 +13,8 @@ LICENSE=	GPLv3+
 BROKEN_armv6=		fails to link: os-features-test.c:10: undefined symbol 'canonicalize_file_name'
 BROKEN_armv7=		fails to link: os-features-test.c:10: undefined symbol 'canonicalize_file_name'
 
-BUILD_DEPENDS=	${PYNUMPY}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYNUMPY}
 LIB_DEPENDS=	libcairo.so:graphics/cairo \
 		libcfitsio.so:astro/cfitsio \
 		libgsl.so:math/gsl \
diff --git a/audio/py-pyradio/Makefile b/audio/py-pyradio/Makefile
index bc8ddda871e8..0288249d56f7 100644
--- a/audio/py-pyradio/Makefile
+++ b/audio/py-pyradio/Makefile
@@ -11,7 +11,8 @@ WWW=		https://github.com/coderholic/pyradio
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \
 		${PKGNAMEPREFIX}dnspython>=2.2.1:dns/py-dnspython@${PY_FLAVOR} \
 		${PKGNAMEPREFIX}netifaces>=0.11.0:net/py-netifaces@${PY_FLAVOR} \
 		${PKGNAMEPREFIX}psutil>=5.9.2:sysutils/py-psutil@${PY_FLAVOR} \
diff --git a/audio/py-torchaudio/Makefile b/audio/py-torchaudio/Makefile
index 668191fb02d6..bb925303a908 100644
--- a/audio/py-torchaudio/Makefile
+++ b/audio/py-torchaudio/Makefile
@@ -14,7 +14,8 @@ WWW=		https://pytorch.org/audio/stable/index.html
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
 		cmake:devel/cmake-core \
 		ninja:devel/ninja \
diff --git a/audio/qjackcapture/Makefile b/audio/qjackcapture/Makefile
index 43821f89ccbf..dd0eb3ad2fce 100644
--- a/audio/qjackcapture/Makefile
+++ b/audio/qjackcapture/Makefile
@@ -13,7 +13,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}natsort>0:devel/py-natsort@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyjacklib>0:audio/py-pyjacklib@${PY_FLAVOR}
-BUILD_DEPENDS=	${PY_DEPENDS}
+BUILD_DEPENDS=	${PY_DEPENDS} \
+		${PY_SETUPTOOLS}
 RUN_DEPENDS=	${PY_DEPENDS} \
 		jack_capture:audio/jack-capture
 
diff --git a/biology/py-dnaio/Makefile b/biology/py-dnaio/Makefile
index 5e12ac4e42c7..e473a1ccde21 100644
--- a/biology/py-dnaio/Makefile
+++ b/biology/py-dnaio/Makefile
@@ -11,7 +11,8 @@ WWW=		https://pypi.python.org/pypi/dnaio
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 
 USES=		python
diff --git a/biology/py-macs3/Makefile b/biology/py-macs3/Makefile
index b51819da5c62..7e903866af04 100644
--- a/biology/py-macs3/Makefile
+++ b/biology/py-macs3/Makefile
@@ -14,7 +14,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 NOT_FOR_ARCHS=	i386
 NOT_FOR_ARCHS_REASON_i386=Requires _Float16
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
 		${PYNUMPY} \
 		simde>0:devel/simde \
 		${PYTHON_PKGNAMEPREFIX}cykhash>0:devel/py-cykhash@${PY_FLAVOR} \
diff --git a/databases/mongodb44/Makefile b/databases/mongodb44/Makefile
index 22c94ad946ec..c99d892ab6d7 100644
--- a/databases/mongodb44/Makefile
+++ b/databases/mongodb44/Makefile
@@ -22,7 +22,8 @@ EXPIRATION_DATE=2024-07-31
 ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64le
 ONLY_FOR_ARCHS_REASON=	only ported to amd64, aarch64, and powerpc64le on FreeBSD; upstream supports arm64, ppc64le, s390x, and x86-64
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR}
 LIB_DEPENDS=	libpcre.so:devel/pcre \
diff --git a/databases/mongodb50/Makefile b/databases/mongodb50/Makefile
index f546e0b9d70e..60d1e6ac1811 100644
--- a/databases/mongodb50/Makefile
+++ b/databases/mongodb50/Makefile
@@ -17,7 +17,8 @@ LICENSE_PERMS_SSPLv1=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64le
 ONLY_FOR_ARCHS_REASON=	only ported to amd64, aarch64, and powerpc64le on FreeBSD; upstream supports arm64, ppc64le, s390x, and x86-64
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${PY_FLAVOR}
 LIB_DEPENDS=	libcurl.so:ftp/curl \
diff --git a/databases/mongodb60/Makefile b/databases/mongodb60/Makefile
index d6c6a8b77805..0a29c8dc8ee3 100644
--- a/databases/mongodb60/Makefile
+++ b/databases/mongodb60/Makefile
@@ -18,7 +18,8 @@ LICENSE_PERMS_SSPLv1=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64le
 ONLY_FOR_ARCHS_REASON=	only ported to amd64, aarch64, and powerpc64le on FreeBSD; upstream supports arm64, ppc64le, s390x, and x86-64
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pymongo>0:databases/py-pymongo@${PY_FLAVOR} \
diff --git a/databases/mongodb70/Makefile b/databases/mongodb70/Makefile
index 5c6154065ee6..8adf763fae47 100644
--- a/databases/mongodb70/Makefile
+++ b/databases/mongodb70/Makefile
@@ -17,7 +17,8 @@ LICENSE_PERMS_SSPLv1=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64le
 ONLY_FOR_ARCHS_REASON=	only ported to amd64, aarch64, and powerpc64le on FreeBSD; upstream supports arm64, ppc64le, s390x, and x86-64
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}cheetah3>0:devel/py-cheetah3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pymongo>0:databases/py-pymongo@${PY_FLAVOR} \
diff --git a/databases/py-snowddl/Makefile b/databases/py-snowddl/Makefile
index 6f5f07c1a97f..bc43bf7cc0a7 100644
--- a/databases/py-snowddl/Makefile
+++ b/databases/py-snowddl/Makefile
@@ -11,6 +11,7 @@ WWW=		https://docs.snowddl.com/
 LICENSE=	APACHE20
 
 BUILD_DEPENDS=	${PY_DEPENDS} \
+		${PY_SETUPTOOLS} \
 		wheel-${PYTHON_VER}:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PY_DEPENDS}
 
diff --git a/deskutils/calibre/Makefile b/deskutils/calibre/Makefile
index 9f09e0b6f799..271657278cc4 100644
--- a/deskutils/calibre/Makefile
+++ b/deskutils/calibre/Makefile
@@ -14,6 +14,7 @@ LICENSE=	GPLv3
 EXTRACT_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
 BUILD_DEPENDS=		${LOCALBASE}/bin/cmake:devel/cmake-core \
 			${NONEXISTENT}:misc/iso-codes:extract \
+			${PY_SETUPTOOLS} \
 			${PYTHON_PKGNAMEPREFIX}apsw>=3.43.0.0:databases/py-apsw@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.12.2:www/py-beautifulsoup@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}css-parser>=1.0.10:www/py-css-parser@${PY_FLAVOR} \
diff --git a/devel/py-cytoolz/Makefile b/devel/py-cytoolz/Makefile
index e56c4ae4639e..edab68fd87e1 100644
--- a/devel/py-cytoolz/Makefile
+++ b/devel/py-cytoolz/Makefile
@@ -11,7 +11,8 @@ WWW=		https://github.com/pytoolz/cytoolz
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}toolz>=0.8.0:devel/py-toolz@${PY_FLAVOR}
 
 USES=		python
diff --git a/devel/py-nbclassic/Makefile b/devel/py-nbclassic/Makefile
index 612177b2d7f3..dd9d64f5bae5 100644
--- a/devel/py-nbclassic/Makefile
+++ b/devel/py-nbclassic/Makefile
@@ -12,7 +12,8 @@ WWW=		https://github.com/jupyter/nbclassic
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Babel>=0:devel/py-babel@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}Babel>=0:devel/py-babel@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jupyter-packaging>=0.9<2:devel/py-jupyter-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}jupyter-server>=1.17.0:devel/py-jupyter-server@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipykernel>=0:devel/py-ipykernel@${PY_FLAVOR} \
diff --git a/devel/py-preshed/Makefile b/devel/py-preshed/Makefile
index f5afd7399208..859c82bba8cb 100644
--- a/devel/py-preshed/Makefile
+++ b/devel/py-preshed/Makefile
@@ -14,6 +14,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cymem>=2.0.2<2.1.0:devel/py-cymem@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}murmurhash>=0.28.0<1.1.0:devel/py-murmurhash@${PY_FLAVOR}
 BUILD_DEPENDS=	${PY_DEPENDS} \
+		${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PY_DEPENDS}
 
diff --git a/devel/py-qt5-pyqt/Makefile b/devel/py-qt5-pyqt/Makefile
index e27bcfa12400..c4736308455e 100644
--- a/devel/py-qt5-pyqt/Makefile
+++ b/devel/py-qt5-pyqt/Makefile
@@ -14,7 +14,8 @@ PYQT_DIST=	yes
 
 LIB_DEPENDS=	libqscintilla2_qt5.so:devel/qscintilla2-qt5 \
 		libdbus-1.so:devel/dbus
-BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR}
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}ply>0:devel/py-ply@${PY_FLAVOR}
diff --git a/devel/py-qt5-qscintilla2/Makefile b/devel/py-qt5-qscintilla2/Makefile
index 99daa7065ab2..495b9395ae11 100644
--- a/devel/py-qt5-qscintilla2/Makefile
+++ b/devel/py-qt5-qscintilla2/Makefile
@@ -10,6 +10,7 @@ MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Python bindings for QScintilla2 (PyQt5), QSci module
 WWW=		https://riverbankcomputing.com/software/pyqt
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
 LIB_DEPENDS=	libqscintilla2_qt5.so:devel/qscintilla2-qt5
 
 DISTINFO_FILE=	${.CURDIR:H}/qscintilla2-qt5/distinfo
diff --git a/devel/py-qt6-pyqt/Makefile b/devel/py-qt6-pyqt/Makefile
index 4df559c4e5e9..08657ba77fcd 100644
--- a/devel/py-qt6-pyqt/Makefile
+++ b/devel/py-qt6-pyqt/Makefile
@@ -13,8 +13,9 @@ PYQT_DIST=	yes
 
 LIB_DEPENDS=	libdbus-1.so:devel/dbus \
 		libqscintilla2_qt6.so:devel/qscintilla2-qt6
-BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR}
-RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dbus>1:devel/py-dbus@${PY_FLAVOR}
 
 USES=		gl pkgconfig python pyqt:6 qt:6
 USE_GL=		opengl
diff --git a/devel/py-qt6-qscintilla2/Makefile b/devel/py-qt6-qscintilla2/Makefile
index 528c3291494a..83db0bac229e 100644
--- a/devel/py-qt6-qscintilla2/Makefile
+++ b/devel/py-qt6-qscintilla2/Makefile
@@ -12,6 +12,7 @@ WWW=		https://riverbankcomputing.com/software/pyqt \
 
 LICENSE=	GPLv3
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
 LIB_DEPENDS=	libqscintilla2_qt6.so:devel/qscintilla2-qt6
 
 USES=		python pyqt:6 gl qt:6
diff --git a/finance/py-financedatabase/Makefile b/finance/py-financedatabase/Makefile
index 76f4eeace36c..980126c3e63d 100644
--- a/finance/py-financedatabase/Makefile
+++ b/finance/py-financedatabase/Makefile
@@ -10,7 +10,8 @@ WWW=		https://github.com/JerBouma/FinanceDatabase
 
 LICENSE=	MIT
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
diff --git a/graphics/opencolorio/Makefile b/graphics/opencolorio/Makefile
index a26bf39d5f4b..33cde277675e 100644
--- a/graphics/opencolorio/Makefile
+++ b/graphics/opencolorio/Makefile
@@ -53,7 +53,8 @@ CMAKE_OFF+=	OCIO_USE_SSE2
 # master and pymodule use these
 # DOCS needs to be enabled for python docstrings to be generated
 # py module can still be used without
-BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}breathe>=0:devel/py-breathe@${PY_FLAVOR} \
+BUILD_DEPENDS+=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}breathe>=0:devel/py-breathe@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}recommonmark>=0:textproc/py-recommonmark@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \
diff --git a/graphics/py-ManimPango/Makefile b/graphics/py-ManimPango/Makefile
index 1c4880d121fe..d55f2d3082e7 100644
--- a/graphics/py-ManimPango/Makefile
+++ b/graphics/py-ManimPango/Makefile
@@ -10,7 +10,8 @@ WWW=		https://manimpango.manim.community/en/latest/
 
 LICENSE=	MIT
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
 		libharfbuzz.so:print/harfbuzz
diff --git a/graphics/py-python-poppler-qt5/Makefile b/graphics/py-python-poppler-qt5/Makefile
index 6de67c1f9bed..739af06edd14 100644
--- a/graphics/py-python-poppler-qt5/Makefile
+++ b/graphics/py-python-poppler-qt5/Makefile
@@ -12,7 +12,8 @@ WWW=		https://pypi.org/project/python-poppler-qt5/
 LICENSE=	LGPL21 LGPL3
 LICENSE_COMB=	dual
 
-BUILD_DEPENDS=	qmake-qt5:devel/qt5-qmake
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		qmake-qt5:devel/qt5-qmake
 LIB_DEPENDS=	libpoppler-qt5.so:graphics/poppler-qt5
 
 USES=		compiler:c++17-lang gl pkgconfig pyqt:5 python qt:5
diff --git a/graphics/py-qt6-3d/Makefile b/graphics/py-qt6-3d/Makefile
index 506ec253c2c1..7ae2d8e90d3b 100644
--- a/graphics/py-qt6-3d/Makefile
+++ b/graphics/py-qt6-3d/Makefile
@@ -11,6 +11,8 @@ MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Python bindings for the Qt6 3D framework
 WWW=		https://www.riverbankcomputing.com/software/pyqt3d/
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
+
 USES=		gl pyqt:6 python qt:6
 USE_GL=		opengl
 USE_PYQT=	sip:build pyqt6 qtbuilder:build
diff --git a/graphics/qgis-ltr/Makefile b/graphics/qgis-ltr/Makefile
index f8208cb648fd..2137504d77f6 100644
--- a/graphics/qgis-ltr/Makefile
+++ b/graphics/qgis-ltr/Makefile
@@ -13,6 +13,7 @@ LICENSE_FILE=	${WRKSRC}/doc/LICENSE
 
 BUILD_DEPENDS=	gpsbabel>=1.7.0:astro/gpsbabel \
 		opencl>=0:devel/opencl \
+		${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}cycler>=0.11.0:devel/py-cycler@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}future>=0.18.2:devel/py-future@${PY_FLAVOR} \
diff --git a/graphics/qgis/Makefile b/graphics/qgis/Makefile
index 7fae658d2bf5..c86f0eaabbb9 100644
--- a/graphics/qgis/Makefile
+++ b/graphics/qgis/Makefile
@@ -12,6 +12,7 @@ LICENSE_FILE=	${WRKSRC}/doc/LICENSE
 
 BUILD_DEPENDS=	gpsbabel>=1.7.0:astro/gpsbabel \
 		opencl>=0:devel/opencl \
+		${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}cycler>=0.11.0:devel/py-cycler@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.2:devel/py-python-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}future>=0.18.2:devel/py-future@${PY_FLAVOR} \
diff --git a/math/py-CyLP/Makefile b/math/py-CyLP/Makefile
index 7765e5bb0c41..672bf48289a1 100644
--- a/math/py-CyLP/Makefile
+++ b/math/py-CyLP/Makefile
@@ -15,6 +15,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LICENSE_PERMS=	auto-accept dist-mirror dist-sell pkg-mirror pkg-sell
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3 \
+		${PY_SETUPTOOLS} \
 		${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 LIB_DEPENDS=	libblas.so:math/blas \
diff --git a/math/py-POT/Makefile b/math/py-POT/Makefile
index 72a3080b785c..49364d284c55 100644
--- a/math/py-POT/Makefile
+++ b/math/py-POT/Makefile
@@ -11,7 +11,7 @@ WWW=		https://pythonot.github.io/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${SETUPTOOLS} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
 		${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYNUMPY} \
diff --git a/math/py-hmmlearn/Makefile b/math/py-hmmlearn/Makefile
index 8b021d5967ae..0d0269ff7fd0 100644
--- a/math/py-hmmlearn/Makefile
+++ b/math/py-hmmlearn/Makefile
@@ -12,6 +12,7 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	wheel-${PYTHON_VER}:devel/py-wheel@${PY_FLAVOR} \
+		${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4.3:devel/py-setuptools-scm@${PY_FLAVOR} \
 		${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}scipy>=0.19:science/py-scipy@${PY_FLAVOR} \
diff --git a/math/py-or-tools/Makefile b/math/py-or-tools/Makefile
index 42577399a8bc..701a29736dcb 100644
--- a/math/py-or-tools/Makefile
+++ b/math/py-or-tools/Makefile
@@ -19,6 +19,7 @@ PY_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}absl-py>0:devel/py-absl-py@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}protobuf>0:devel/py-protobuf@${PY_FLAVOR}
 BUILD_DEPENDS=	${PY_DEPENDS} \
+		${PY_SETUPTOOLS} \
 		pybind11>0:devel/pybind11 \
 		protoc-gen-mypy:devel/py-mypy-protobuf@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
diff --git a/misc/pytorch/Makefile b/misc/pytorch/Makefile
index d4c28e48505c..7ec1e06209a3 100644
--- a/misc/pytorch/Makefile
+++ b/misc/pytorch/Makefile
@@ -53,6 +53,7 @@ PYTHON_PY_DEPENDS=	${PYNUMPY} \
 			${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
 PYTHON_BUILD_DEPENDS=	${PYTHON_PY_DEPENDS} \
+			${PY_SETUPTOOLS} \
 			pybind11>0:devel/pybind11
 PYTHON_RUN_DEPENDS=	${PYTHON_PY_DEPENDS}
 
diff --git a/multimedia/gpodder/Makefile b/multimedia/gpodder/Makefile
index 91d484ef5137..2de2b9eef096 100644
--- a/multimedia/gpodder/Makefile
+++ b/multimedia/gpodder/Makefile
@@ -10,7 +10,8 @@ WWW=		https://gpodder.github.io/
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	intltool-extract:textproc/intltool \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		intltool-extract:textproc/intltool \
 		help2man:misc/help2man
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} \
diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile
index bf83478e3f85..79eb2a44376f 100644
--- a/multimedia/mythtv/Makefile
+++ b/multimedia/mythtv/Makefile
@@ -105,7 +105,8 @@ OPTIONS_DEFAULT=	BINDINGS HDHOMERUN VDPAU
 OPTIONS_SUB=		yes
 
 BINDINGS_DESC=		Perl and Python bindings
-BINDINGS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR} \
+BINDINGS_BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+			${PYTHON_PKGNAMEPREFIX}mysqlclient>=0:databases/py-mysqlclient@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
diff --git a/net/freeipa-client/Makefile b/net/freeipa-client/Makefile
index d4a113b9561e..2c70d6020641 100644
--- a/net/freeipa-client/Makefile
+++ b/net/freeipa-client/Makefile
@@ -12,7 +12,8 @@ WWW=		https://www.freeipa.org/
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
 
 LIB_DEPENDS=	libcmocka.so:sysutils/cmocka \
 		libcurl.so:ftp/curl \
diff --git a/net/py-libdnet/Makefile b/net/py-libdnet/Makefile
index 7f8be1f9ab75..b7534322fd72 100644
--- a/net/py-libdnet/Makefile
+++ b/net/py-libdnet/Makefile
@@ -4,6 +4,7 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 COMMENT=	Python module for libdnet
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
 LIB_DEPENDS=	libdnet.so:net/libdnet
 
 USES=		autoreconf libtool localbase:ldflags python
diff --git a/net/py-qt5-networkauth/Makefile b/net/py-qt5-networkauth/Makefile
index 37bbc04b1bf2..ad3af79ce242 100644
--- a/net/py-qt5-networkauth/Makefile
+++ b/net/py-qt5-networkauth/Makefile
@@ -12,7 +12,8 @@ MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Python bindings for the Qt5 toolkit, QtNetworkAuth module
 WWW=		https://riverbankcomputing.com/software/pyqt
 
-BUILD_DEPENDS=	qmake-qt5:devel/qt5-qmake
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		qmake-qt5:devel/qt5-qmake
 LIB_DEPENDS=	libqscintilla2_qt5.so:devel/qscintilla2-qt5
 
 USES=		gl pyqt:5 python qt:5
diff --git a/net/py-qt6-networkauth/Makefile b/net/py-qt6-networkauth/Makefile
index ad5d0e107f92..5ad80b222f88 100644
--- a/net/py-qt6-networkauth/Makefile
+++ b/net/py-qt6-networkauth/Makefile
@@ -11,6 +11,8 @@ MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Python bindings for the Qt6 toolkit, QtNetworkAuth module
 WWW=		https://riverbankcomputing.com/software/pyqt
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
+
 USES=		gl pyqt:6 python qt:6
 USE_GL=		opengl
 USE_PYQT=	sip:build pyqt6 qtbuilder
diff --git a/print/system-config-printer/Makefile b/print/system-config-printer/Makefile
index d27c077ffce3..b26325d3271a 100644
--- a/print/system-config-printer/Makefile
+++ b/print/system-config-printer/Makefile
@@ -7,7 +7,8 @@ MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	CUPS configuration Gtk+2.0 GUI
 WWW=		http://cyberelk.net/tim/software/system-config-printer/
 
-BUILD_DEPENDS=	xmlto:textproc/xmlto \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		xmlto:textproc/xmlto \
 		docbook-xml>0:textproc/docbook-xml
 LIB_DEPENDS=	libcups.so:print/cups
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \
diff --git a/science/chemicalfun/Makefile b/science/chemicalfun/Makefile
index 7c90beb17c27..1c55c5c1c2b7 100644
--- a/science/chemicalfun/Makefile
+++ b/science/chemicalfun/Makefile
@@ -10,6 +10,7 @@ COMMENT=	C++ library for working with chemical reactions and formulas
 WWW=		https://bitbucket.org/gems4/chemicalfun/src/master/
 
 BUILD_DEPENDS=	nlohmann-json>0:devel/nlohmann-json \
+		${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR}
 LIB_DEPENDS=	libfmt.so:devel/libfmt # due to SPDLOG_FMT_EXTERNAL
diff --git a/science/psi4/Makefile b/science/psi4/Makefile
index 4693cc18bedd..f8e3e4fcbf06 100644
--- a/science/psi4/Makefile
+++ b/science/psi4/Makefile
@@ -19,6 +19,7 @@ PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gau2grid>0:math/py-gau2grid@${PY_FLAVOR} \
 BUILD_DEPENDS=	boost-libs>0:devel/boost-libs \
 		${LOCALBASE}/include/pybind11/pybind11.h:devel/pybind11 \
 		${PY_DEPENDS} \
+		${PY_SETUPTOOLS} \
 		libint2-psi4>0:science/libint2-psi4 # has to be this library
 LIB_DEPENDS=	libgg.so:math/gau2grid \
 		libxc.so:science/libxc
diff --git a/science/py-HofstadterTools/Makefile b/science/py-HofstadterTools/Makefile
index cac1ea51b518..fd8636f491cb 100644
--- a/science/py-HofstadterTools/Makefile
+++ b/science/py-HofstadterTools/Makefile
@@ -11,7 +11,8 @@ WWW=		https://hofstadter.tools/
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipython>0:devel/ipython@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \
diff --git a/science/scidavis/Makefile b/science/scidavis/Makefile
index 2915fa993837..3ac0d3c41a4c 100644
--- a/science/scidavis/Makefile
+++ b/science/scidavis/Makefile
@@ -35,9 +35,10 @@ OPTIONS_DEFINE=	DOCS NLS PYTHON
 OPTIONS_DEFAULT=	PYTHON
 OPTIONS_SUB=	yes
 
-PYTHON_DESC=	Python scripting support
-PYTHON_USES=	pyqt:5 python
-PYTHON_USE=	PYQT=pyqt5 sip
+PYTHON_DESC=		Python scripting support
+PYTHON_BUILD_DEPENDS=	${PY_SETUPTOOLS}
+PYTHON_USES=		pyqt:5 python
+PYTHON_USE=		PYQT=pyqt5 sip
 PYTHON_CMAKE_ON=	-DPython3_EXECUTABLE=${PYTHON_CMD} \
 			-DSCRIPTING_PYTHON=True
 PYTHON_CMAKE_OFF=	-DSCRIPTING_PYTHON=False
diff --git a/security/sssd2/Makefile b/security/sssd2/Makefile
index 5c7cd1f4cce4..b6d6ec665daa 100644
--- a/security/sssd2/Makefile
+++ b/security/sssd2/Makefile
@@ -12,7 +12,8 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 CONFLICTS_INSTALL?=	sssd*
 
-BUILD_DEPENDS=	bash:shells/bash \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		bash:shells/bash \
 		docbook-xsl>=1:textproc/docbook-xsl \
 		krb5>=1.20:security/krb5 \
 		p11-kit:security/p11-kit \
diff --git a/textproc/py-pandoc-plantuml-filter/Makefile b/textproc/py-pandoc-plantuml-filter/Makefile
index d46d814db3d3..7a43318784a9 100644
--- a/textproc/py-pandoc-plantuml-filter/Makefile
+++ b/textproc/py-pandoc-plantuml-filter/Makefile
@@ -11,7 +11,8 @@ WWW=		https://github.com/timofurrer/pandoc-plantuml-filter
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pandocfilters>0:textproc/py-pandocfilters@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}pandocfilters>0:textproc/py-pandocfilters@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pandocfilters>0:textproc/py-pandocfilters@${PY_FLAVOR} \
diff --git a/www/chrome-gnome-shell/Makefile b/www/chrome-gnome-shell/Makefile
index 458a541388fb..a609fe3fc2fa 100644
--- a/www/chrome-gnome-shell/Makefile
+++ b/www/chrome-gnome-shell/Makefile
@@ -11,7 +11,8 @@ WWW=		https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	base64:converters/base64 \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		base64:converters/base64 \
 		gnome-shell>=3.28:x11/gnome-shell \
 		jq:textproc/jq
 
diff --git a/www/py-qt5-webengine/Makefile b/www/py-qt5-webengine/Makefile
index 3d760f7e0d64..ea0d86226d66 100644
--- a/www/py-qt5-webengine/Makefile
+++ b/www/py-qt5-webengine/Makefile
@@ -14,6 +14,8 @@ WWW=		https://riverbankcomputing.com/software/pyqt
 
 LICENSE=	GPLv3
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
+
 USES=		gl python pyqt:5 qt:5
 USE_GL=		gl
 USE_PYQT=	sip:build pyqt5
@@ -21,6 +23,6 @@ USE_PYTHON=	concurrent flavors py3kplist
 USE_QT=		core declarative gui location network printsupport webchannel \
 		webengine widgets qmake:build
 
-PLIST_SUB=		PYQT_WEBENGINE_VERSION=${DISTVERSION}
+PLIST_SUB=	PYQT_WEBENGINE_VERSION=${DISTVERSION}
 
 .include <bsd.port.mk>
diff --git a/www/py-qt6-webengine/Makefile b/www/py-qt6-webengine/Makefile
index 8a6e942bdb93..34ac80810678 100644
--- a/www/py-qt6-webengine/Makefile
+++ b/www/py-qt6-webengine/Makefile
@@ -11,6 +11,8 @@ MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Python bindings for the Qt6 toolkit, QtWebEngine module
 WWW=		https://riverbankcomputing.com/software/pyqt
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
+
 USES=		gl python pyqt:6 qt:6
 USE_GL=		opengl
 USE_PYQT=	sip:build pyqt6
diff --git a/www/varnish-libvmod-maxminddb/Makefile b/www/varnish-libvmod-maxminddb/Makefile
index ee452820b8c4..2b45ca2b67fb 100644
--- a/www/varnish-libvmod-maxminddb/Makefile
+++ b/www/varnish-libvmod-maxminddb/Makefile
@@ -11,7 +11,8 @@ WWW=		https://github.com/simonvik/libvmod_maxminddb
 
 LICENSE=	BSD2CLAUSE
 
-BUILD_DEPENDS=	rst2man:textproc/py-docutils@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		rst2man:textproc/py-docutils@${PY_FLAVOR}
 LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb
 
 USES=		autoreconf compiler:c11 gmake libtool pkgconfig \
diff --git a/x11-toolkits/py-qt6-chart/Makefile b/x11-toolkits/py-qt6-chart/Makefile
index f38512934c34..41c873ca0509 100644
--- a/x11-toolkits/py-qt6-chart/Makefile
+++ b/x11-toolkits/py-qt6-chart/Makefile
@@ -13,6 +13,8 @@ WWW=		https://riverbankcomputing.com/software/pyqtchart
 
 LICENSE=	${PYQT6_LICENSE}
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
+
 USES=		gl pyqt:6 python qt:6
 USE_GL=		opengl
 USE_PYQT=	sip:build pyqt6 qtbuilder
diff --git a/x11-toolkits/py-qt6-datavis3d/Makefile b/x11-toolkits/py-qt6-datavis3d/Makefile
index 5bbd80b56c2b..406433e4b2cb 100644
--- a/x11-toolkits/py-qt6-datavis3d/Makefile
+++ b/x11-toolkits/py-qt6-datavis3d/Makefile
@@ -11,6 +11,8 @@ MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Python bindings for the Qt6 data visualization library
 WWW=		https://riverbankcomputing.com/software/pyqtdatavisualization/
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS}
+
 USES=		gl pyqt:6 python qt:6
 USE_GL=		opengl
 USE_PYQT=	sip:build pyqt6 qtbuilder:build