]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/setup-virtualenv.sh: do not default to python2.7 30379/head
authorNathan Cutler <ncutler@suse.com>
Fri, 13 Sep 2019 14:12:52 +0000 (16:12 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 13 Sep 2019 14:26:08 +0000 (16:26 +0200)
commit78468e49ab2110d69bc34333c0ce90acb832de1a
treea888bc62bc82748252109b11be6a784f2598d296
parent609ab5aa850b147dd0ea799ff14ac594951cf748
tools/setup-virtualenv.sh: do not default to python2.7

This commit changes the script's behavior when run without a --python option.
Before, we were running virtualenv with "--python python2.7" in that case.

That is not a reasonable default in September 2019, given that Python 2 EOL is
coming on January 1, 2020. Also, it breaks setup-virtualenv.sh in py3-only
environments.

With this patch, the script will not pass any "--python" option to virtualenv
(i.e., it will let virtualenv do whatever it thinks is best) in this case.

Fixes: https://tracker.ceph.com/issues/41821
Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/tools/setup-virtualenv.sh