mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 12:24:32 +04:00
python: patch setup.py so that it does not include system include dirs
Seems that the Python C extensions were being (or at least trying to be) build using '/usr/include' as the first include folder. Seems this issue was already fixed on MacOS X and now we've extended it for our case. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index cbdeaf3..5154412 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -480,7 +480,8 @@ class PyBuildExt(build_ext):
|
||||
add_dir_to_list(dir_list, directory)
|
||||
|
||||
if os.path.normpath(sys.prefix) != '/usr' \
|
||||
- and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
|
||||
+ and not sysconfig.get_config_var('PYTHONFRAMEWORK') \
|
||||
+ and not cross_compiling:
|
||||
# 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
|
||||
Reference in New Issue
Block a user