bind/bind-9.16-python-isc-distutils.patch
Petr Menšík c4caa41827 Fix installability conflict on python subpackage
Old version of 9.16.23 had dist-egg a simple file. New package should it
have a simple file too. Do not use prefer setuptools.

Resolves: RHEL-6454
2026-07-07 14:38:39 +02:00

35 lines
982 B
Diff

From ebedaa79b93dfcb4f41169095ae02f59dedb3fa1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
Date: Tue, 2 Dec 2025 17:29:59 +0100
Subject: [PATCH] Swap order of tried setuptools providers
Older distutils.core will generate only a single file, not whole
directory. That is needed for upgrade test. For newer distributions,
setuptools should still work.
To keep backward compatibility with 9.16.23, prefer distutils.
---
bin/python/setup.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/python/setup.py b/bin/python/setup.py
index 4440b74..dc96561 100644
--- a/bin/python/setup.py
+++ b/bin/python/setup.py
@@ -10,10 +10,10 @@
# information regarding copyright ownership.
try:
- from setuptools import setup
-except ImportError:
# pylint: disable=deprecated-module
from distutils.core import setup
+except ImportError:
+ from setuptools import setup
setup(
name="isc",
--
2.52.0