006-remove-multi-arch-and-local-paths.patch 604 B

12345678910111213141516
  1. --- a/setup.py
  2. +++ b/setup.py
  3. @@ -454,13 +454,8 @@ class PyBuildExt(build_ext):
  4. os.unlink(tmpfile)
  5. def detect_modules(self):
  6. - # Ensure that /usr/local is always used
  7. - if not cross_compiling:
  8. - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
  9. - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
  10. if cross_compiling:
  11. self.add_gcc_paths()
  12. - self.add_multiarch_paths()
  13. # Add paths specified in the environment variables LDFLAGS and
  14. # CPPFLAGS for header and library files.