[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
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 11:05:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259981 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=229940&action=edit py-setuptools_scm-workaround-for-py-packaging-v1.patch Hm, devel/py-setuptools_scm has a fallback (via "try ... except") in [1] when 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 met, 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.toml 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/_version_cls.py -- You are receiving this mail because: You are on the CC list for the bug.