Skip to content

Commit

Permalink
Issue #20211: Do not add the directory for installing C header files and
Browse files Browse the repository at this point in the history
the directory for installing object code libraries to the cross compilation
search paths.
  • Loading branch information
Xavier de Gaye committed Dec 14, 2016
1 parent 7262b42 commit 1351c31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Misc/NEWS
Expand Up @@ -53,6 +53,10 @@ Tests
Build
-----

- 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. Original patch by Thomas Petazzoni.

- Issue #28849: Do not define sys.implementation._multiarch on Android.


Expand Down
5 changes: 3 additions & 2 deletions setup.py
Expand Up @@ -532,8 +532,9 @@ def detect_modules(self):
for directory in reversed(options.dirs):
add_dir_to_list(dir_list, directory)

if os.path.normpath(sys.base_prefix) != '/usr' \
and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
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
# building a framework with different architectures than
Expand Down

0 comments on commit 1351c31

Please sign in to comment.