diff options
author | Max Rees <maxcrees@me.com> | 2019-08-06 11:21:50 -0500 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2019-08-06 20:45:49 -0500 |
commit | 15ce70d3172a3485207d9905f00ca21370fda597 (patch) | |
tree | b8e7e1694e6c5748e8340139eb6d4ba604bf4685 /user/py3-virtualenv/python3.patch | |
parent | 8bbeb4438e40557890e505c45e7b9e7888bd56f5 (diff) | |
download | packages-15ce70d3172a3485207d9905f00ca21370fda597.tar.gz packages-15ce70d3172a3485207d9905f00ca21370fda597.tar.bz2 packages-15ce70d3172a3485207d9905f00ca21370fda597.tar.xz packages-15ce70d3172a3485207d9905f00ca21370fda597.zip |
user/py3-virtualenv: bump to 16.7.2
Diffstat (limited to 'user/py3-virtualenv/python3.patch')
-rw-r--r-- | user/py3-virtualenv/python3.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/user/py3-virtualenv/python3.patch b/user/py3-virtualenv/python3.patch new file mode 100644 index 000000000..f1550f49c --- /dev/null +++ b/user/py3-virtualenv/python3.patch @@ -0,0 +1,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", + "", |