patch-setup_py 668 B

1234567891011
  1. --- Python-3.6.0.orig/setup.py 2016-12-23 03:21:22.000000000 +0100
  2. +++ Python-3.6.0/setup.py 2017-05-10 17:22:50.000000000 +0200
  3. @@ -532,7 +532,7 @@ class PyBuildExt(build_ext):
  4. for directory in reversed(options.dirs):
  5. add_dir_to_list(dir_list, directory)
  6. - if os.path.normpath(sys.base_prefix) != '/usr' \
  7. + if not cross_compiling and os.path.normpath(sys.base_prefix) != '/usr' \
  8. and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
  9. # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
  10. # (PYTHONFRAMEWORK is set) to avoid # linking problems when