Bug 296510 - devel/py-qtbuilder: fails to build with devel/py-setuptools 81.0.0
Summary: devel/py-qtbuilder: fails to build with devel/py-setuptools 81.0.0
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks: 270358
  Show dependency treegraph
 
Reported: 2026-07-04 12:10 UTC by O. Hartmann
Modified: 2026-07-15 08:41 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
poudriere log for devel/py-qtbuilder (47.18 KB, text/plain)
2026-07-06 12:38 UTC, Hiroo Ono
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2026-07-04 12:10:24 UTC
In case devel/py-setuptools is version > 63.0, i.e. >= 81.0.0, build of port fails with:

[...]
adding 'pyqt_builder-1.19.1.dist-info/RECORD'
removing build/bdist.freebsd-16.0-CURRENT-amd64/wheel
Successfully built pyqt_builder-1.19.1-py3-none-any.whl
===>  Staging for py312-PyQt-builder-1.19.1
===>   py312-PyQt-builder-1.19.1 depends on file: /usr/local/bin/python3.12 - found
===>   py312-PyQt-builder-1.19.1 depends on package: py312-sip>=6.15.3,1 - found
===>   Generating temporary packing list
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/local/lib/python3.12/site-packages/installer/__main__.py", line 115, in <module>
    _main(sys.argv[1:], "python -m installer")
  File "/usr/local/lib/python3.12/site-packages/installer/__main__.py", line 100, in _main
    with WheelFile.open(wheel) as source:
         ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/installer/sources.py", line 179, in open
    with zipfile.ZipFile(path) as f:
         ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/zipfile/__init__.py", line 1352, in __init__
    self.fp = io.open(file, filemode)
              ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/ports/devel/py-qtbuilder/work-py312/pyqt_builder-1.19.1/dist/PyQt_builder-1.19.1*.whl'
*** Error code 1
[...]

Iterestingly, the fail seems to root in the fact that the actual *.whl file is

/usr/ports/devel/py-qtbuilder/work-py312/pyqt_builder-1.19.1/dist/pyqt_builder-1.19.1-py3-none-any.whl

while the file required for registration is

/usr/ports/devel/py-qtbuilder/work-py312/pyqt_builder-1.19.1/dist/PyQt_builder-1.19.1*.whl
Comment 1 O. Hartmann 2026-07-04 12:31:15 UTC
This might be due to devel/py-wheel, which replaces devel/py-wheel044.
Comment 2 Charlie Li freebsd_committer freebsd_triage 2026-07-04 14:58:08 UTC
You need to apply the entirety of review D46236, which also includes a
corresponding change to Mk/Uses/python.mk. devel/py-wheel is irrelevant (and the dependency line is to be removed after the setuptools update)
Comment 3 Hiroo Ono 2026-07-06 12:38:41 UTC
Created attachment 272540 [details]
poudriere log for devel/py-qtbuilder

By applying the patch from review D46236, it builds fine. See the attached poudriere log.
Comment 4 Max Brazhnikov freebsd_committer freebsd_triage 2026-07-15 08:41:31 UTC
This should be fixed along with setuptools update.