Allow Python interpreter to be specified during build
This allows the library to be built and tested with a non-default version of CPython, e.g. scons bindings=python python=python3.6 scons bindings=python python=python3.6 testpython
This commit is contained in:
parent
287f71d561
commit
c82390941d
2 changed files with 5 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ vars = Variables(None, ARGUMENTS)
|
|||
vars.Add(PathVariable('DESTDIR', 'Root directory to install in (useful for packaging scripts)', None, PathVariable.PathIsDirCreate))
|
||||
vars.Add(PathVariable('prefix', 'Where to install in the FHS', default_install_dir, PathVariable.PathAccept))
|
||||
vars.Add(ListVariable('bindings', 'Language bindings to build', 'none', ['cpp', 'dotnet', 'perl', 'php', 'python', 'ruby']))
|
||||
vars.Add('python', 'Python interpreter', 'python')
|
||||
|
||||
tools = ['default', 'scanreplace']
|
||||
if 'dotnet' in ARGUMENTS.get('bindings', []):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue