From 77d81aa4a3747b7dfbb17e43b16e1a514550c60c Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 1 Dec 2019 20:18:01 +0300 Subject: Import python3.8 (3.8.0-5) --- debian/patches/deb-setup.diff | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'debian/patches/deb-setup.diff') diff --git a/debian/patches/deb-setup.diff b/debian/patches/deb-setup.diff index 748085d..3b231c0 100644 --- a/debian/patches/deb-setup.diff +++ b/debian/patches/deb-setup.diff @@ -2,7 +2,7 @@ --- a/setup.py +++ b/setup.py -@@ -337,8 +337,10 @@ class PyBuildExt(build_ext): +@@ -385,8 +385,10 @@ class PyBuildExt(build_ext): # unfortunately, distutils doesn't let us provide separate C and C++ # compilers if compiler is not None: @@ -15,17 +15,17 @@ self.compiler.set_executables(**args) build_ext.build_extensions(self) -@@ -576,12 +578,7 @@ class PyBuildExt(build_ext): - os.unlink(tmpfile) +@@ -645,12 +647,7 @@ class PyBuildExt(build_ext): + add_dir_to_list(dir_list, directory) - def detect_modules(self): + def configure_compiler(self): - # Ensure that /usr/local is always used, but the local build - # directories (i.e. '.' and 'Include') must be first. See issue - # 10520. -- if not cross_compiling: +- if not CROSS_COMPILING: - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') + # On Debian /usr/local is always used, so we don't include it twice # only change this for cross builds for 3.3, issues on Mageia - if cross_compiling: - self.add_gcc_paths() + if CROSS_COMPILING: + self.add_cross_compiling_paths() -- cgit v1.2.3