Closed ndhaller closed 2 months ago
edkrepo 3.2.2 , Python 3.12.3, setuptools==69.5.1
Seing a DeprcationWarning in edkrepo_cli.py with this configuration.
edk2-edkrepo\edkrepo_cli.py:14: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Is it possible to remove the pkg_resources use entirely?
-import pkg_resources
+from importlib.metadata import version
- version = pkg_resources.get_distribution("edkrepo").version
- parser.add_argument("--version", action="version", version="%(prog)s {0}".format(version))
+ edkrepo_version = version("edkrepo")
+ parser.add_argument("--version", action="version", version="%(prog)s {0}".format(edkrepo_version))
Windows OS with python-3.12.0-amd64 or python-3.12.1-amd64 installed, EdkRepoSetup-3.1.3.0.exe Windows installer fails.
Windows Python 3.12.x seems removed setuptools . Manually installing setuptools is now a Windows Install Pre-Requisite as well, not just for Linux Build.
py -3 -m pip install setuptools