Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e43edaa

Browse files
author
Xavier de Gaye
committed
Issue #20211: Merge 3.6.
2 parents f239213 + 1351c31 commit e43edaa

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,10 @@ Documentation
540540
Build
541541
-----
542542

543+
- Issue #20211: Do not add the directory for installing C header files and the
544+
directory for installing object code libraries to the cross compilation
545+
search paths. Original patch by Thomas Petazzoni.
546+
543547
- Issue #28849: Do not define sys.implementation._multiarch on Android.
544548

545549
- Issue #10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,9 @@ def detect_modules(self):
533533
for directory in reversed(options.dirs):
534534
add_dir_to_list(dir_list, directory)
535535

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

0 commit comments

Comments
 (0)