Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit dcd941d

Browse files
Default to creating virtualenv using Python used to invoke ebcli_installer.py
The current behaviour of the ebcli_installer.py is to not pass a Python executable's PATH to virtualenv to create a sandbox for the EB CLI. As a result, virtualenv may use a Python other than the one used to invoke ebcli_installer.py. This behaviour is confusing. On some systems where the default Python is 2.7, virtualenv may use that, thereby defeating the goal to use the latest and greatest. This commit ensures that ebcli_installer.py passes the path to the Python executable used to invoke it to virtualenv to create a sandbox for the EB CLI with.
1 parent 8306771 commit dcd941d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎scripts/ebcli_installer.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ def _create_virtualenv(
426426
"""
427427
virtualenv_location = virtualenv_location or _user_local_directory()
428428
virtualenv_directory = os.path.join(virtualenv_location, VIRTUALENV_DIR_NAME)
429+
python_installation = python_installation or sys.executable
429430

430431
if (
431432
os.path.exists(virtualenv_directory)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /