mirror of https://gitlab.com/ita1024/waf.git
Detect Python from conf.env.PYTHON
This commit is contained in:
parent
6702434df4
commit
b9df5b205e
|
@ -591,7 +591,10 @@ def configure(conf):
|
||||||
if getattr(Options.options, 'nopycache', None):
|
if getattr(Options.options, 'nopycache', None):
|
||||||
v.NOPYCACHE=Options.options.nopycache
|
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 = ''
|
||||||
v.PYFLAGS_OPT = '-O'
|
v.PYFLAGS_OPT = '-O'
|
||||||
|
|
Loading…
Reference in New Issue