Date: Thu, 25 Nov 2021 17:59:16 +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-b2TLnMhzgC@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 ---------------------------------------------------------------------------- Flags|maintainer-feedback?(kai@Fr |maintainer-feedback+ |eeBSD.org) | --- Comment #5 from Kai Knoblich <kai@FreeBSD.org> --- The problem occurs in environments where devel/py-setuptools_scm is install= ed and devel/py-packaging is also updated together with other Python ports dur= ing an upgrade run via portmaster. The old version of devel/py-packaging will be removed at some point and the= new version will be installed too late which will then leads to the issue descr= ibed in comment #2. This is because devel/py-packaging is required for run time [1] by devel/py-setuptools_scm and the latter one is very interlocked with devel/py-setuptools. It's executed together almost every time a Python por= t is built and will fail if a dependency is missing during run time. The issue can be reproduced via: - Install/Build devel/py-pyparsing 3.0.4 - Install/Build devel/py-packaging 21.2_1 - Install/Build devel/py-setuptools_scm - Apply patches to update devel/py-packaging to 21.3 and devel/py-pyparsing= to 3.0.6 - Try to upgrade the ports with portmaster The whole problem will most likely recur the next time devel/py-packaging is updated. Probably a long-term solution would be if portmaster treats ports like devel/py-setuptools* and their dependencies with higher priority over other Ports during an upgrade run. (In reply to Kubilay Kocak from comment #3) I'll add devel/py-packaging to BUILD_DEPENDS as it is in "pyproject.toml" a= nd you have already mentioned it although it's not the solution to the problem reported with devel/py-pyparsing as described above. -- [1] https://github.com/pypa/setuptools_scm/blob/v6.3.2/setup.cfg#L30 --=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-b2TLnMhzgC>