summaryrefslogtreecommitdiff
path: root/user/py3-virtualenv/python3.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-08-08 03:31:00 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-08-08 03:31:00 +0000
commita01cc01896f6fb3b472622711d632100b3c86cdb (patch)
tree21fb15bbd40fabb290446ee3aa09e491306f2a87 /user/py3-virtualenv/python3.patch
parent5c572c8c2013c5833d041ea4411a189d85f312fa (diff)
parent3f98aef31c277c4f673d3ad9db6b11b6e973ea5e (diff)
downloadpackages-a01cc01896f6fb3b472622711d632100b3c86cdb.tar.gz
packages-a01cc01896f6fb3b472622711d632100b3c86cdb.tar.bz2
packages-a01cc01896f6fb3b472622711d632100b3c86cdb.tar.xz
packages-a01cc01896f6fb3b472622711d632100b3c86cdb.zip
Merge branch 'sr.2019.08.06' into 'master'
Misc package bumps for Maintainer: Max Rees, 2019.08.06 See merge request adelie/packages!313
Diffstat (limited to 'user/py3-virtualenv/python3.patch')
-rw-r--r--user/py3-virtualenv/python3.patch44
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",
+ "",