Added support to allow to compile Godot from the same directory while using different versions of python
(cherry picked from commit beee8b3776
)
This commit is contained in:
parent
e4907e50fe
commit
7f62bed238
|
@ -73,7 +73,7 @@ logs/
|
||||||
|
|
||||||
# for projects that use SCons for building: http://http://www.scons.org/
|
# for projects that use SCons for building: http://http://www.scons.org/
|
||||||
.sconf_temp
|
.sconf_temp
|
||||||
.sconsign.dblite
|
.sconsign*.dblite
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
# https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
# https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||||
|
|
|
@ -5,6 +5,7 @@ EnsureSConsVersion(0, 98, 1)
|
||||||
# System
|
# System
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
import pickle
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Local
|
# Local
|
||||||
|
@ -88,6 +89,9 @@ env_base.__class__.disable_warnings = methods.disable_warnings
|
||||||
env_base["x86_libtheora_opt_gcc"] = False
|
env_base["x86_libtheora_opt_gcc"] = False
|
||||||
env_base["x86_libtheora_opt_vc"] = False
|
env_base["x86_libtheora_opt_vc"] = False
|
||||||
|
|
||||||
|
# avoid issues when building with different versions of python out of the same directory
|
||||||
|
env_base.SConsignFile(".sconsign{0}.dblite".format(pickle.HIGHEST_PROTOCOL))
|
||||||
|
|
||||||
# Build options
|
# Build options
|
||||||
|
|
||||||
customs = ['custom.py']
|
customs = ['custom.py']
|
||||||
|
|
Loading…
Reference in New Issue