Skip to content

Commit

Permalink
Added support to allow to compile Godot from the same directory while…
Browse files Browse the repository at this point in the history
… using different versions of python

(cherry picked from commit beee8b3)
  • Loading branch information
supagu authored and akien-mga committed Jan 1, 2020
1 parent e4907e5 commit 7f62bed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ logs/

# for projects that use SCons for building: http://http://www.scons.org/
.sconf_temp
.sconsign.dblite
.sconsign*.dblite
*.pyc

# https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
Expand Down
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ EnsureSConsVersion(0, 98, 1)
# System
import glob
import os
import pickle
import sys

# Local
Expand Down Expand Up @@ -88,6 +89,9 @@ env_base.__class__.disable_warnings = methods.disable_warnings
env_base["x86_libtheora_opt_gcc"] = 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

customs = ['custom.py']
Expand Down

0 comments on commit 7f62bed

Please sign in to comment.