Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1351c31

Browse files
author
Xavier de Gaye
committedDec 14, 2016
Issue python#20211: Do not add the directory for installing C header files and
the directory for installing object code libraries to the cross compilation search paths.
1 parent 7262b42 commit 1351c31

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎Misc/NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ Tests
5353
Build
5454
-----
5555

56+
- Issue #20211: Do not add the directory for installing C header files and the
57+
directory for installing object code libraries to the cross compilation
58+
search paths. Original patch by Thomas Petazzoni.
59+
5660
- Issue #28849: Do not define sys.implementation._multiarch on Android.
5761

5862

‎setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,9 @@ def detect_modules(self):
532532
for directory in reversed(options.dirs):
533533
add_dir_to_list(dir_list, directory)
534534

535-
if os.path.normpath(sys.base_prefix) != '/usr' \
536-
and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
535+
if (not cross_compiling and
536+
os.path.normpath(sys.base_prefix) != '/usr' and
537+
not sysconfig.get_config_var('PYTHONFRAMEWORK')):
537538
# OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
538539
# (PYTHONFRAMEWORK is set) to avoid # linking problems when
539540
# building a framework with different architectures than

0 commit comments

Comments
 (0)
Failed to load comments.