aboutsummaryrefslogtreecommitdiffstats
path: root/waflib/Tools/python.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-17 17:31:03 +0100
committerDavid Robillard <d@drobilla.net>2019-03-17 18:14:27 +0100
commit3be2dd998b16725d596f0ab8b376691ec12a9acc (patch)
tree59603e6135700e9b9f129409a55ad44a580d7427 /waflib/Tools/python.py
parenta13822206d4dfd2088468558b36befcf32adeb89 (diff)
parentadeace4871fcf37ba7c8d7c2707e90b5ae2c9f3a (diff)
downloadmachina-3be2dd998b16725d596f0ab8b376691ec12a9acc.tar.gz
machina-3be2dd998b16725d596f0ab8b376691ec12a9acc.tar.bz2
machina-3be2dd998b16725d596f0ab8b376691ec12a9acc.zip
Update autowaf and adapt to new APIHEADmaster
Diffstat (limited to 'waflib/Tools/python.py')
-rw-r--r--waflib/Tools/python.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/waflib/Tools/python.py b/waflib/Tools/python.py
index 25841d0..01a2c9a 100644
--- a/waflib/Tools/python.py
+++ b/waflib/Tools/python.py
@@ -329,6 +329,10 @@ def check_python_headers(conf, features='pyembed pyext'):
conf.find_program([''.join(pybin) + '-config', 'python%s-config' % num, 'python-config-%s' % num, 'python%sm-config' % num], var='PYTHON_CONFIG', msg="python-config", mandatory=False)
if env.PYTHON_CONFIG:
+ # check python-config output only once
+ if conf.env.HAVE_PYTHON_H:
+ return
+
# python2.6-config requires 3 runs
all_flags = [['--cflags', '--libs', '--ldflags']]
if sys.hexversion < 0x2070000: