diff options
author | William Deegan <bill@baddogconsulting.com> | 2018-11-13 18:58:06 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2018-11-13 18:58:06 (GMT) |
commit | c2aba592affffdb12d2f95e251ccfc566b6dd674 (patch) | |
tree | 3f1719afc1ec7408135659f154f4b4072f8b44af /src/engine/SCons/Script/Main.py | |
parent | ade84bc59db524fbccd670bfadefa786407c7c0b (diff) | |
parent | 648cf42a89845ccad012e02609ca8958e62ce272 (diff) | |
download | SCons-c2aba592affffdb12d2f95e251ccfc566b6dd674.zip SCons-c2aba592affffdb12d2f95e251ccfc566b6dd674.tar.gz SCons-c2aba592affffdb12d2f95e251ccfc566b6dd674.tar.bz2 |
Merge remote-tracking branch 'upstream/master' into subst_rewrite
Diffstat (limited to 'src/engine/SCons/Script/Main.py')
-rw-r--r-- | src/engine/SCons/Script/Main.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py index 6516a15..2c59808 100644 --- a/src/engine/SCons/Script/Main.py +++ b/src/engine/SCons/Script/Main.py @@ -59,6 +59,7 @@ import SCons.Job import SCons.Node import SCons.Node.FS import SCons.Platform +import SCons.Platform.virtualenv import SCons.SConf import SCons.Script import SCons.Taskmaster @@ -863,6 +864,13 @@ def _main(parser): for warning_type, message in delayed_warnings: SCons.Warnings.warn(warning_type, message) + if not SCons.Platform.virtualenv.virtualenv_enabled_by_default: + if options.enable_virtualenv: + SCons.Platform.virtualenv.enable_virtualenv = True + + if options.ignore_virtualenv: + SCons.Platform.virtualenv.ignore_virtualenv = True + if options.diskcheck: SCons.Node.FS.set_diskcheck(options.diskcheck) |