mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-07 05:16:38 +02:00
Fix `ModuleNotFoundError: No module named 'pkg_resources'` error when building with setuptools 82. The error originates from the import of `pkg_resources` in the `ez_setup.py` script for downloading and installing setuptools, unneeded with system setuptools available. Disable importing the `ez_setup` module to avoid the error. Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/18025
12 lines
308 B
Diff
12 lines
308 B
Diff
diff -rupN a/setup.py b/setup.py
|
|
--- a/setup.py 2022-05-05 15:29:43.000000000 +0000
|
|
+++ b/setup.py 2026-04-01 00:16:26.240000000 +0000
|
|
@@ -1,7 +1,3 @@
|
|
-import ez_setup
|
|
-
|
|
-ez_setup.use_setuptools()
|
|
-
|
|
from setuptools import setup, find_packages
|
|
|
|
exec(open("proglog/version.py").read()) # loads __version__
|