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

Skip to content

Commit 1351c31

Browse files
author
Xavier de Gaye
committed
Issue #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

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
@@ -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

Lines changed: 3 additions & 2 deletions
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)