forked from pool/python-virtualenvwrapper
Accepting request 757257 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/757257 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-virtualenvwrapper?expand=0&rev=24
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 15 17:10:58 UTC 2019 - Kristyna Streitova <kstreitova@suse.com>
|
||||
|
||||
- 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 <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
13
virtualenvwrapper-4.8.4-python_version.patch
Normal file
13
virtualenvwrapper-4.8.4-python_version.patch
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user