Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / lang / python / python3 / patches / 006-remove-multi-arch-and-local-paths.patch
1 --- a/setup.py
2 +++ b/setup.py
3 @@ -487,16 +487,9 @@ class PyBuildExt(build_ext):
4 return ['m']
5
6 def detect_modules(self):
7 - # Ensure that /usr/local is always used, but the local build
8 - # directories (i.e. '.' and 'Include') must be first. See issue
9 - # 10520.
10 - if not cross_compiling:
11 - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
12 - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
13 # only change this for cross builds for 3.3, issues on Mageia
14 if cross_compiling:
15 self.add_gcc_paths()
16 - self.add_multiarch_paths()
17
18 # Add paths specified in the environment variables LDFLAGS and
19 # CPPFLAGS for header and library files.