浏览代码

Patch python3 to build cleanly on OSX as host

dir 7 年之前
父节点
当前提交
c2721d8988
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      package/python3/patches/patch-setup_py

+ 11 - 0
package/python3/patches/patch-setup_py

@@ -0,0 +1,11 @@
+--- Python-3.6.0.orig/setup.py	2016-12-23 03:21:22.000000000 +0100
++++ Python-3.6.0/setup.py	2017-05-10 17:22:50.000000000 +0200
+@@ -532,7 +532,7 @@ 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' \
++        if not cross_compiling and 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