Skip to content

Commit

Permalink
Fix, again, finding headers during cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
rnhmjoj committed Aug 21, 2022
1 parent c802880 commit 9079e77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions distutils/sysconfig.py
Expand Up @@ -165,9 +165,8 @@ def _get_python_inc_from_config(plat_specific, spec_prefix):
platform Python installation, while the current Python
executable is from the build platform installation.
"""
if not spec_prefix:
return
return get_config_var('CONF' * plat_specific + 'INCLUDEPY')
if spec_prefix is None:
return get_config_var('CONF' * plat_specific + 'INCLUDEPY')


def _get_python_inc_posix_prefix(prefix):
Expand Down

1 comment on commit 9079e77

@kanavin
Copy link

@kanavin kanavin commented on 9079e77 Nov 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change broke Yocto builds, which I would say is a fairly important cross compiling use case. I'm investigating.

Please sign in to comment.