aports/testing/py3-proglog/disable-ez-setup.patch
mio 05ac40cf22 testing/py3-proglog: rebuild against python 3.14
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
2026-04-01 02:19:29 +00:00

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__