Debian Codegraph @

debian/patches/0002-Remove-distutils-code-in-preparation-for-Python-3.12.patch

raw
1 From: Michael Fladischer <[email protected]>
2 Date: Wed, 29 Nov 2023 16:38:05 +0000
3 Subject: Remove distutils code in preparation for Python 3.12.
4
5 ---
6 setup.py | 12 +-----------
7 1 file changed, 1 insertion(+), 11 deletions(-)
8
9 diff --git a/setup.py b/setup.py
10 index 8dede7e..0d5aa57 100644
11 --- a/setup.py
12 +++ b/setup.py
13 @@ -4,19 +4,9 @@ import glob
14
15 import setuptools
16
17 -from distutils import sysconfig
18 -from distutils.errors import (
19 - CCompilerError,
20 - DistutilsExecError,
21 - DistutilsPlatformError
22 -)
23 +import sysconfig
24 HERE = os.path.dirname(os.path.abspath(__file__))
25
26 -ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)
27 -if sys.platform == 'win32':
28 - # distutils.msvc9compiler can raise IOError if the compiler is missing
29 - ext_errors += (IOError, )
30 -
31 is_pypy = hasattr(sys, 'pypy_version_info')
32 is_py3k = sys.version_info[0] == 3
33