setup.py is called when running `make install` to compile native extensions for python. The setup.py script prepends /usr/include to the list of include dirs, making some extensions fail to due native inline assembly. Simply fix this by removing the addition of host include and lib dirs and let oe-lite handle those. Upstream-status: reported diff --git a/setup.py b/setup.py index 5abea03..ec920f5 100644 --- a/setup.py +++ b/setup.py @@ -510,17 +510,6 @@ class PyBuildExt(build_ext): for directory in reversed(options.dirs): add_dir_to_list(dir_list, directory) - if os.path.normpath(sys.base_prefix) != '/usr' \ - and not sysconfig.get_config_var('PYTHONFRAMEWORK'): - # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework - # (PYTHONFRAMEWORK is set) to avoid # linking problems when - # building a framework with different architectures than - # the one that is currently installed (issue #7473) - add_dir_to_list(self.compiler.library_dirs, - sysconfig.get_config_var("LIBDIR")) - add_dir_to_list(self.compiler.include_dirs, - sysconfig.get_config_var("INCLUDEDIR")) - # lib_dirs and inc_dirs are used to search for files; # if a file is found in one of those directories, it can # be assumed that no additional -I,-L directives are needed.