002-do-not-add-include-dirs-when-cross-compiling.patch 603 B

123456789101112
  1. --- a/setup.py
  2. +++ b/setup.py
  3. @@ -497,7 +497,8 @@ class PyBuildExt(build_ext):
  4. add_dir_to_list(dir_list, directory)
  5. if os.path.normpath(sys.prefix) != '/usr' \
  6. - and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
  7. + and not sysconfig.get_config_var('PYTHONFRAMEWORK') \
  8. + and not cross_compiling:
  9. # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
  10. # (PYTHONFRAMEWORK is set) to avoid # linking problems when
  11. # building a framework with different architectures than