Closed dlukyanov closed 3 years ago
We specify any setuptools-scm version as a setup requirement:
https://github.com/pdoc3/pdoc/blob/f358893e4fcfd7f29857a7ff5491b606ff146d39/setup.py#L53-L56
If pip install pdoc3
pulls in the yanked version, I'd say that's a pip/setuptools bug. See https://github.com/pypa/pip/issues/8262.
It might help (and is perhaps always advised) to run this beforehand:
RUN pip3 install --upgrade pip setuptools
Older versions of setuptools would handle setup_requires
using easy_install
which is no longer supported and does not respect the "yanked" flag. New versions of setuptools should pass setup_requires
as build requirements, which recent versions of pip will install normally into an isolated build environment, respecting the "yanked" flag.
@dlukyanov please ensure this issue can be reproduced using the latest versions of pip and setuptools. It's not possible to tell from the information in your report what versions of pip and setuptools are being used.
# python3 --version
Python 3.8.6
# python3 -m pip install pip --upgrade
Successfully installed pip-21.2.4
# python3 -m pip --version
pip 21.2.4 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
after this if you try to install pdoc3 - it will fail with error described above
however after python3 -m pip install pip setuptools --upgrade
the installation of pdoc3 works fine.
pip install pdoc3
fails with error:Steps to Reproduce
Dockerfile:
use command to build docker and it will fail:
NOTE: this docker was working fine just several days ago and now it fails.
After investigation i found that pdoc3 uses setuptools_scm-6.2.0 (yanked version) during setup...
https://pypi.org/project/setuptools-scm/6.2.0/