You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
671 B

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