1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
--- virtualenv-16.7.2/virtualenv.py
+++ virtualenv-16.7.2/virtualenv.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Create a "virtual" Python installation"""
# fmt: off
@@ -82,7 +82,7 @@ DEFAULT_CONFIG_FILE = os.path.join(DEFAU
if IS_PYPY:
EXPECTED_EXE = "pypy"
else:
- EXPECTED_EXE = "python"
+ EXPECTED_EXE = "python3"
# Return a mapping of version -> Python executable
# Only provided for Windows, where the information in the registry is used
--- virtualenv-16.7.2/tasks/update_embedded.py
+++ virtualenv-16.7.2/tasks/update_embedded.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""
Helper script to rebuild virtualenv.py from virtualenv_support
"""
--- virtualenv-16.7.2/tests/test_virtualenv.py
+++ virtualenv-16.7.2/tests/test_virtualenv.py
@@ -288,14 +288,14 @@ def test_resolve_interpreter_with_invali
def test_activate_after_future_statements():
"""Should insert activation line after last future statement"""
script = [
- "#!/usr/bin/env python",
+ "#!/usr/bin/env python3",
"from __future__ import with_statement",
"from __future__ import print_function",
'print("Hello, world!")',
]
out = virtualenv.relative_script(script)
assert out == [
- "#!/usr/bin/env python",
+ "#!/usr/bin/env python3",
"from __future__ import with_statement",
"from __future__ import print_function",
"",
|