Date: Mon, 06 Dec 2021 11:05:48 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 259981] devel/py-setuptools_scm: Fix incorrect *_DEPENDS, causing devel/py-pyparsing (and others) Fails to configure: The 'packaging>=20.0' distribution was not found Message-ID: <bug-259981-21822-QSSK8IDOax@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-259981-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-259981-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259981 Kai Knoblich <kai@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #229940| |maintainer-approval+ Flags| | --- Comment #8 from Kai Knoblich <kai@FreeBSD.org> --- Created attachment 229940 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229940&action= =3Dedit py-setuptools_scm-workaround-for-py-packaging-v1.patch Hm, devel/py-setuptools_scm has a fallback (via "try ... except") in [1] wh= en devel/py-packaging is absent. It's also the only location where devel/py-packaging is (optionally) required at the moment. However, this code is not executed because devel/py-setuptools, which checks the dependencies upon invocation and terminates as soon as these are not me= t, which leads then to the errors in comment #0. Attached is a workaround which should remedy the issue by patching out devel/py-packaging from "setup.cfg" but keep it in RUN_DEPENDS. It also adds devel/py-packaging to BUILD_DEPENDS as defined in pyproject.to= ml although it's not strictly required to build the port. I'll leave this patch here for a few days for general testing and feedback. QA: ~~~ - poudriere -> OK (12.2-RELEASE amd64 against all consumers) - portmaster -> OK (using the scenario outlined in comment #5) - "make test" -> OK -- [1] https://github.com/pypa/setuptools_scm/blob/v6.3.2/src/setuptools_scm/_vers= ion_cls.py --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259981-21822-QSSK8IDOax>