diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-12-05 14:04:38 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-05 14:38:52 +0000 |
commit | fb23430fd306ff967e64a06c0dabe951927a02ea (patch) | |
tree | 0e42548dcd15790bef33d3d4876c96019d085a59 /site_scons | |
parent | f8d272de5c8cb9c675a41e72ce58312e9e5c9644 (diff) | |
download | mongo-fb23430fd306ff967e64a06c0dabe951927a02ea.tar.gz |
SERVER-62995 SERVER-62074 update pretty printers to work with v4 and add tests
Diffstat (limited to 'site_scons')
-rw-r--r-- | site_scons/mongo/pip_requirements.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site_scons/mongo/pip_requirements.py b/site_scons/mongo/pip_requirements.py index e7963b5a69a..e8f26db086e 100644 --- a/site_scons/mongo/pip_requirements.py +++ b/site_scons/mongo/pip_requirements.py @@ -12,7 +12,7 @@ class MissingRequirements(Exception): pass -def verify_requirements(requirements_file: str, silent: bool = False): +def verify_requirements(requirements_file: str, silent: bool = False, executable=sys.executable): """Check if the modules in a pip requirements file are installed. This allows for a more friendly user message with guidance on how to resolve the missing dependencies. @@ -30,7 +30,7 @@ def verify_requirements(requirements_file: str, silent: bool = False): def raiseSuggestion(ex, pip_pkg): raise MissingRequirements(f"{ex}\n" f"Try running:\n" - f" {sys.executable} -m pip install {pip_pkg}") from ex + f" {executable} -m pip install {pip_pkg}") from ex # Import the prequisites for this function, providing hints on failure. try: |