From 98fb49cbc0dfaed69b0c8d13f2abd5b22f18cca63c696a5f69c542c611390b7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 16 Dec 2019 07:51:33 +0000 Subject: [PATCH] Accepting request 757202 from home:kstreitova:branches:devel:languages:python - add virtualenvwrapper-4.8.4-python_version.patch to use python3 instead of python2 OBS-URL: https://build.opensuse.org/request/show/757202 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenvwrapper?expand=0&rev=65 --- python-virtualenvwrapper.changes | 6 ++++++ python-virtualenvwrapper.spec | 2 ++ virtualenvwrapper-4.8.4-python_version.patch | 13 +++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 virtualenvwrapper-4.8.4-python_version.patch diff --git a/python-virtualenvwrapper.changes b/python-virtualenvwrapper.changes index dbd684e..0d58dab 100644 --- a/python-virtualenvwrapper.changes +++ b/python-virtualenvwrapper.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 15 17:10:58 UTC 2019 - Kristyna Streitova + +- add virtualenvwrapper-4.8.4-python_version.patch to use python3 + instead of python2 + ------------------------------------------------------------------- Fri May 24 14:04:24 UTC 2019 - Tomáš Chvátal diff --git a/python-virtualenvwrapper.spec b/python-virtualenvwrapper.spec index f5f9e72..ce489c3 100644 --- a/python-virtualenvwrapper.spec +++ b/python-virtualenvwrapper.spec @@ -26,6 +26,7 @@ License: MIT Group: Development/Languages/Python URL: https://virtualenvwrapper.readthedocs.io/ Source: https://files.pythonhosted.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-%{version}.tar.gz +Patch0: virtualenvwrapper-4.8.4-python_version.patch BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -60,6 +61,7 @@ conflicts in their dependencies. %prep %setup -q -n virtualenvwrapper-%{version} sed -i -e '1i#!/bin/sh' virtualenvwrapper.sh +%patch0 -p1 %build %python_build diff --git a/virtualenvwrapper-4.8.4-python_version.patch b/virtualenvwrapper-4.8.4-python_version.patch new file mode 100644 index 0000000..591823b --- /dev/null +++ b/virtualenvwrapper-4.8.4-python_version.patch @@ -0,0 +1,13 @@ +Index: virtualenvwrapper-4.8.4/virtualenvwrapper.sh +=================================================================== +--- virtualenvwrapper-4.8.4.orig/virtualenvwrapper.sh ++++ virtualenvwrapper-4.8.4/virtualenvwrapper.sh +@@ -47,7 +47,7 @@ + # Locate the global Python where virtualenvwrapper is installed. + if [ "${VIRTUALENVWRAPPER_PYTHON:-}" = "" ] + then +- VIRTUALENVWRAPPER_PYTHON="$(command \which python)" ++ VIRTUALENVWRAPPER_PYTHON="$(command \which python3)" + fi + + # Set the name of the virtualenv app to use.