[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

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 25 Nov 2021 17:59:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259981

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 installed
and devel/py-packaging is also updated together with other Python ports during
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 described
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 port 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" and
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.