tech-pkg archive

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

Re: py-setuptool update is coming



> 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?

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

Please, double check the packages you have installed.

Kind regards,
Adam



Home | Main Index | Thread Index | Old Index