Codebase list logbook / cc5568a
Add patch for python3-setuptools Closes: #1022450 Jochen Sprickerhof 1 year, 5 months ago
2 changed file(s) with 54 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Jochen Sprickerhof <jspricke@debian.org>
1 Date: Mon, 31 Oct 2022 13:09:22 +0100
2 Subject: Drop custom build_ext class
3
4 This was only used to catch exceptions during build (which we probably
5 don't want in Debian anyhow) and does not work anymore with distutils
6 from setuptools
7 ---
8 setup.py | 24 ------------------------
9 1 file changed, 24 deletions(-)
10
11 diff --git a/setup.py b/setup.py
12 index 2f2a5e3..67ad40d 100644
13 --- a/setup.py
14 +++ b/setup.py
15 @@ -57,7 +57,6 @@ import platform
16 import sys
17 from itertools import chain
18
19 -from distutils.command.build_ext import build_ext
20 from distutils.errors import (
21 CCompilerError, DistutilsExecError, DistutilsPlatformError)
22 from setuptools import Distribution as _Distribution, Extension, setup
23 @@ -83,29 +82,6 @@ class BuildFailed(Exception):
24 self.cause = sys.exc_info()[1] # work around py 2/3 different syntax
25
26
27 -class ve_build_ext(build_ext):
28 - """This class allows C extension building to fail."""
29 -
30 - def run(self):
31 - try:
32 - build_ext.run(self)
33 - except DistutilsPlatformError:
34 - raise BuildFailed()
35 -
36 - def build_extension(self, ext):
37 - try:
38 - build_ext.build_extension(self, ext)
39 - except ext_errors:
40 - raise BuildFailed()
41 - except ValueError:
42 - # this can happen on Windows 64 bit, see Python issue 7511
43 - if "'path'" in str(sys.exc_info()[1]): # works with both py 2/3
44 - raise BuildFailed()
45 - raise
46 -
47 -cmdclass['build_ext'] = ve_build_ext
48 -
49 -
50 class Distribution(_Distribution):
51
52 def has_ext_modules(self):
00 0001-Point-intersphinx-map-to-local-doc.patch
11 use-cython3.patch
2 0003-Drop-custom-build_ext-class.patch