2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 11:51:20 +01:00

Detect Python from conf.env.PYTHON

This commit is contained in:
Thomas Nagy 2017-04-14 01:54:19 +02:00
parent a31b08615c
commit 98f051dfa4
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -591,7 +591,10 @@ def configure(conf):
if getattr(Options.options, 'nopycache', None):
v.NOPYCACHE=Options.options.nopycache
conf.find_program('python', var='PYTHON', value=getattr(Options.options, 'python', None) or sys.executable)
if not v.PYTHON:
v.PYTHON = getattr(Options.options, 'python', None) or sys.executable
v.PYTHON = Utils.to_list(v.PYTHON)
conf.find_program('python', var='PYTHON')
v.PYFLAGS = ''
v.PYFLAGS_OPT = '-O'