[Bug 259993] devel/py-pyparsing: build failure: pkg_resources.DistributionNotFound: The 'packaging>=20.0' distribution was not found and is required by the application

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 04 Dec 2021 22:33:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259993

Stefan Eßer <se@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |se@FreeBSD.org
         Resolution|---                         |DUPLICATE
             Status|New                         |Closed

--- Comment #10 from Stefan Eßer <se@FreeBSD.org> ---
No, this has nothing to do at all with portmaster, as is obvious from the
reports that ran into this situation without using portmaster.

This is actually a duplicate of PR 259981, and I'll mark it as such.

The problem is that py-setuptools_scm depends on both py-pyparsing and
py-packaging, and these two ports are correctly installed with
py-setuptools_scm.

Both py-pyparsing and py-packaging cannot depend on py-setuptools_scm, as that
would be a circular dependency.

But if either or both of py-pyparsing and py-packaging are removed, but
py-setuptools_scm persists, then the missing ports can no longer be built.

The configure phase will try to execute py-setuptools_scm, which fails of one
of the run dependencies is missing. And that terminates the build of the
missing dependency, despite it not really depending on py-setuptools_scm (as
that would be a circular dependency).

Either py-setuptools_scm should only be executed for ports that actually depend
on it (not realistic), or a failure of py-setuptools_scm due to a missing
py-pyparsing or py-packaging should not make their setup.py fail, perhaps by
passing an option that prevents invocation of py-setuptools_scm for these two
ports.

*** This bug has been marked as a duplicate of bug 259981 ***

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