please don't add this, progressbar build doesn't use scm. setuptools is
stupid and greedily picks up extensions if present, which results in
problems with dpb junking (you're especially likely to see them if you do
junking more frequently than default). adding it as a dep where not
necessary increases the chances of hitting that in other ports.
--
Sent from a phone, apologies for poor formatting.
On 28 August 2025 12:03:12 Kirill A. Korinsky <[email protected]> wrote:
Remi,
it fails on my bulk build as:
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/usr/local/lib/python3.12/site-packages/setuptools_scm/__init__.py",
line 8, in <module>
from ._config import DEFAULT_LOCAL_SCHEME
ModuleNotFoundError: No module named 'setuptools_scm._config'
ERROR Backend subprocess exited when trying to invoke
get_requires_for_build_wheel
*** Error 1 in devel/py-progressbar
(/usr/ports/lang/python/3/python.port.mk:361 'do-build': @: ; if [ -e
/usr/ports/pobj/py-progressbar-2.5...)
*** Error 2 in devel/py-progressbar
(/usr/ports/infrastructure/mk/bsd.port.mk:3065
'/usr/ports/pobj/py-progressbar-2.5/.build_done': @cd /us...)
*** Error 2 in devel/py-progressbar
(/usr/ports/infrastructure/mk/bsd.port.mk:2712 'build':
@lock=py3-progressbar-2.5p9; export _LOCKS_HELD...)
===> Exiting devel/py-progressbar with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:144
'build': @: ${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...)
Ok?
Index: devel/py-progressbar/Makefile
===================================================================
RCS file: /home/cvs/ports/devel/py-progressbar/Makefile,v
diff -u -p -r1.26 Makefile
--- devel/py-progressbar/Makefile 29 Apr 2025 10:38:12 -0000 1.26
+++ devel/py-progressbar/Makefile 28 Aug 2025 10:59:42 -0000
@@ -15,7 +15,7 @@ MAINTAINER = Remi Pointel <rpointel@ope
PERMIT_PACKAGE = Yes
MODULES = lang/python
-MODPY_PYBUILD = setuptools
+MODPY_PYBUILD = setuptools_scm
MODPY_PI = Yes
NO_TEST = Yes
--
wbr, Kirill