Whether or not we use /usr/bin/env or not doesn't really matter to me. Most of the shebangs in this MP don't even use it. I am just following the official specifications of PEP394.
What matters to me is python2 over python.
A script should not expect the user to change the /usr/bin/python symlink.
Ronald, I cannot replicate the behaviour:
scarter ~ % virtualenv --version bin_env/ bin/python2. 7 bin_env/ bin/python bin_env/ bin/activate bin_env) scarter ~ % python -c "import sys; print(sys.prefix); print(sys.version)" test_usr_ bin_env bin_env) scarter ~ % python2 -c "import sys; print(sys.prefix); print(sys.version)" test_usr_ bin_env test_usr_ bin_env bin_env) scarter ~ % /usr/bin/env python2 -c "import sys; print(sys.prefix); print(sys.version)" test_usr_ bin_env bin_env) scarter ~ % deactivate
1.11.2
scarter ~ % python -c "import sys; print(sys.prefix); print(sys.version)"
/usr
3.3.3 (default, Nov 26 2013, 13:33:18)
[GCC 4.8.2]
scarter ~ % python2 -c "import sys; print(sys.prefix); print(sys.version)"
/usr
2.7.6 (default, Nov 26 2013, 12:52:49)
[GCC 4.8.2]
scarter ~ % /usr/bin/env python -c "import sys; print(sys.prefix); print(sys.version)"
/usr
3.3.3 (default, Nov 26 2013, 13:33:18)
[GCC 4.8.2]
scarter ~ % /usr/bin/env python2 -c "import sys; print(sys.prefix); print(sys.version)"
/usr
2.7.6 (default, Nov 26 2013, 12:52:49)
[GCC 4.8.2]
scarter ~ % virtualenv --python=python2.7 test_usr_bin_env
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in test_usr_
Also creating executable in test_usr_
Installing setuptools, pip...done.
scarter ~ % . test_usr_
(test_usr_
/home/scarter/
2.7.6 (default, Nov 26 2013, 12:52:49)
[GCC 4.8.2]
(test_usr_
/home/scarter/
2.7.6 (default, Nov 26 2013, 12:52:49)
[GCC 4.8.2]
(test_usr_bin_env) scarter ~ % /usr/bin/env python -c "import sys; print(sys.prefix); print(sys.version)"
/home/scarter/
2.7.6 (default, Nov 26 2013, 12:52:49)
[GCC 4.8.2]
(test_usr_
/home/scarter/
2.7.6 (default, Nov 26 2013, 12:52:49)
[GCC 4.8.2]
(test_usr_
Whether or not we use /usr/bin/env or not doesn't really matter to me. Most of the shebangs in this MP don't even use it. I am just following the official specifications of PEP394.
What matters to me is python2 over python.
A script should not expect the user to change the /usr/bin/python symlink.