[Bug 291658] devel/py-setuptools fails to build
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 291658] devel/py-setuptools fails to build"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Aug 2026 18:17:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291658
PG <pg46726565425344@ailleurs.sytes.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pg46726565425344@ailleurs.s
| |ytes.net
--- Comment #1 from PG <pg46726565425344@ailleurs.sytes.net> ---
Comment on attachment 266184
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266184
full build log
Hi !
This bug is not a bug into devel/py-setuptools, but devel/py-wheel (I don't
know how to change the information of this bug).
This bug seems to me kind of circular dependency from devel/py-wheel, and
affects those who compile from source and scratch.
devel/py-wheel installs
"/usr/local/lib/python3.11/site-packages/wheel/_bdist_wheel.py" and that file
has a line to ask for the installed version of devel/py-setuptools.
At that point, devel/py-setuptools is not installed, and _bdist_wheel.py not
executed.
While installing devel/py-setuptools, _bdist_wheel.py is executed, but there is
not yet some py-setuptools installed, hence no version number available, and
devel/py-setuptools fails to install.
I added this patch in devel/py-wheel/files/patch-_bdist_wheel_py.diff and
re-installed devel/py-wheel. Everything seems Ok now :
----------
--- ./src/wheel/_bdist_wheel.py.orig 2026-04-22 15:50:55.394143300 +0000
+++ ./src/wheel/_bdist_wheel.py 2026-08-04 16:26:47.567105000 +0000
@@ -66,7 +66,7 @@
return re.sub("[^A-Za-z0-9.]+", "-", version)
-setuptools_major_version = int(setuptools.__version__.split(".")[0])
+setuptools_major_version = int(63)
PY_LIMITED_API_PATTERN = r"cp3\d"
----------
HTH
--
You are receiving this mail because:
You are the assignee for the bug.