diff options
author | William Deegan <bill@baddogconsulting.com> | 2018-11-13 00:20:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 00:20:04 (GMT) |
commit | 648cf42a89845ccad012e02609ca8958e62ce272 (patch) | |
tree | d5508373a12ba325edf9d2f404da7a237a351c5f /src/engine/SCons/Script/Main.py | |
parent | 9baa048a6f1f9e8aba2b0971fc806d5764fd86ac (diff) | |
parent | 0414380dec2104dedc163e7489f445621ef0e5f6 (diff) | |
download | SCons-648cf42a89845ccad012e02609ca8958e62ce272.zip SCons-648cf42a89845ccad012e02609ca8958e62ce272.tar.gz SCons-648cf42a89845ccad012e02609ca8958e62ce272.tar.bz2 |
Merge pull request #3216 from ptomulik/virtualenv
Initial support for virtualenv
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) |