-
-
Notifications
You must be signed in to change notification settings - Fork 139
Description
Python 3.8
widget_tweaks 1.4.2
from pkg_resources import get_distribution, DistributionNotFound
File "/Users/felixsargent/src/hiring/resume-ranker-frontend/mysite/.venv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 121, in <module>
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
DeprecationWarning: pkg_resources is deprecated as an API
found using pytest -W error
FWIW, both pkg_resources and directly invoking setup.py install are semi-deprecated and are mostly unsupported.
The replacement for pkg_resources.distribution(...).version is importlib.metadata.version(...) (backported to pre-3.7 Python as importlib_metadata), though I doubt that will solve anyone's problem if the installation metadata is simply not present.
pypa/setuptools#2088 (comment), but the short answer is that you should always prefer pip install to setup.py install, even in a package manager. A few people (particularly those involved in Arch linux packaging) have been working on minimal PEP 517 build frontend to build wheels and a minimal wheel installer, so possibly early adoption of those technologies will work better for you, @PureTryOut.