build: Fix potential undefined variable
This commit is contained in:
parent
5deb695919
commit
3871fbaacb
@ -3,8 +3,10 @@ if python_opt.startswith('python3')
|
|||||||
# Python 3.8 introduced a new -embed variant
|
# Python 3.8 introduced a new -embed variant
|
||||||
if not python_opt.endswith('-embed')
|
if not python_opt.endswith('-embed')
|
||||||
python_dep = dependency(python_opt + '-embed', version: '>= 3.3', required: false)
|
python_dep = dependency(python_opt + '-embed', version: '>= 3.3', required: false)
|
||||||
endif
|
if not python_dep.found()
|
||||||
if not python_dep.found()
|
python_dep = dependency(python_opt, version: '>= 3.3')
|
||||||
|
endif
|
||||||
|
else
|
||||||
python_dep = dependency(python_opt, version: '>= 3.3')
|
python_dep = dependency(python_opt, version: '>= 3.3')
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user