summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2022-08-21 16:18:20 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2022-08-21 16:18:20 +0200
commit9079e77d4ca8fedc62c2040f691dfd2e7205217d (patch)
tree6ed66116e1e15c2c3c4feee6f2c3ac86843d2269
parentc802880bfba39d3072599eef2e0f34568f93e6cd (diff)
downloadpython-setuptools-git-9079e77d4ca8fedc62c2040f691dfd2e7205217d.tar.gz
Fix, again, finding headers during cross compiling
-rw-r--r--distutils/sysconfig.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/distutils/sysconfig.py b/distutils/sysconfig.py
index aae9c1b3..4b722043 100644
--- a/distutils/sysconfig.py
+++ b/distutils/sysconfig.py
@@ -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):