Control: tags 1022449 + patch Control: tags 1022449 + pending Dear maintainer,
I've prepared an NMU for python-maxminddb (versioned as 2.0.3-1.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. Regards. SR
diff -Nru python-maxminddb-2.0.3/debian/changelog python-maxminddb-2.0.3/debian/changelog --- python-maxminddb-2.0.3/debian/changelog 2020-12-11 06:29:45.000000000 +0200 +++ python-maxminddb-2.0.3/debian/changelog 2022-11-11 23:49:29.000000000 +0200 @@ -1,3 +1,10 @@ +python-maxminddb (2.0.3-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Patch: Avoid distutils, supporting setuptools >= 60. (Closes: #1022449) + + -- Stefano Rivera <stefa...@debian.org> Fri, 11 Nov 2022 23:49:29 +0200 + python-maxminddb (2.0.3-1) unstable; urgency=medium * New upstream release. diff -Nru python-maxminddb-2.0.3/debian/patches/avoid-distutils python-maxminddb-2.0.3/debian/patches/avoid-distutils --- python-maxminddb-2.0.3/debian/patches/avoid-distutils 1970-01-01 02:00:00.000000000 +0200 +++ python-maxminddb-2.0.3/debian/patches/avoid-distutils 2022-11-11 23:49:29.000000000 +0200 @@ -0,0 +1,36 @@ +From: Gregory Oschwald <goschw...@maxmind.com> +Date: Tue, 7 Dec 2021 14:22:04 -0800 +Subject: Do not use distutils + +Origin: upstream, https://github.com/maxmind/MaxMind-DB-Reader-python/commit/4ddd4ca604ab0f78f763664b76d7d0eebfdbe6ae +Bug-Debian: https://bugs.debian.org/1022449 +--- + setup.py | 14 +++++++++++--- + 1 file changed, 11 insertions(+), 3 deletions(-) + +diff --git a/setup.py b/setup.py +index 8feb869..2596b41 100644 +--- a/setup.py ++++ b/setup.py +@@ -5,10 +5,18 @@ import sys + # This import is apparently needed for Nose on Red Hat's Python + import multiprocessing + +-from distutils.command.build_ext import build_ext +-from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError +- + from setuptools import setup, Extension ++from setuptools.command.build_ext import build_ext ++ ++# These were only added to setuptools in 59.0.1. ++try: ++ from setuptools.errors import CCompilerError ++ from setuptools.errors import DistutilsExecError ++ from setuptools.errors import DistutilsPlatformError ++except ImportError: ++ from distutils.errors import CCompilerError ++ from distutils.errors import DistutilsExecError ++ from distutils.errors import DistutilsPlatformError + + cmdclass = {} + PYPY = hasattr(sys, "pypy_version_info") diff -Nru python-maxminddb-2.0.3/debian/patches/series python-maxminddb-2.0.3/debian/patches/series --- python-maxminddb-2.0.3/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 +++ python-maxminddb-2.0.3/debian/patches/series 2022-11-11 23:49:29.000000000 +0200 @@ -0,0 +1 @@ +avoid-distutils