tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: py-setuptool update is coming



On Tue, 2025-04-15 at 22:21 +0200, Adam wrote:
> > Hi Adam,
> > 
> > It seems that py-setuptools has new runtime dependencies, from
> > examining its pyproject.toml definition, and from encountering this
> > in
> > builds, e.g., in an environment that has py-packaging 24.1
> > installed:
> > 
> > ===> Building for py312-markdown-3.8
> > * Building wheel...
> > Could not find an up-to-date installation of `packaging`. License
> > expressions might not be validated. To enforce validation, please
> > install `packaging>=24.2`.
> 
> ...
> 
> >  File "/usr/pkg/lib/python3.12/site-
> > packages/setuptools/_normalization.py", line 163, in
> > _missing_canonicalize_license_expression
> >    raise ImportError(
> > ImportError: Cannot import `packaging.licenses`.
> >        Setuptools>=77.0.0 requires "packaging>=24.2" to work
> > properly.
> >        Please make sure you have a suitable version installed.
> > 
> > (I see other packages listed as Setuptools dependencies now, too.)
> 
> Dave,
> 
> There is something wrong with the dependencies on you machine. py-
> markdown includes wheel.mk,
> which depends on devel/py-build, which in turn depends on devel/py-
> packaging, so you should have
> py312-packaging installed. Or is it an older version?

In this example, py312-packaging 24.1 was installed. py-build specifies
a minimum dependency of 19.1, so that passes. This is a packaging bug.
Either py-setuptools should declare it has a direct dependency on py-
packaging >= 24.2 or py-build should be adjusted.

> There is also a vendored packaging-24.2 in setuptools in site-
> packages/setuptools/_vendor.

Yes, but as we can see from this example, it isn't used by the
execution paths in play here. (It is indeed installed on my
system under "_vendor" with py312-setuptools 78.1.)

Regards,

Dave




Home | Main Index | Thread Index | Old Index