Remove /local/ part from virtualenv paths
Not nice, but resolves https://bugzilla.redhat.com/2011455 for now
This commit is contained in:
parent
8b5ddff449
commit
4d22e158ea
14
hack_around_local.patch
Normal file
14
hack_around_local.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/src/virtualenv/discovery/py_info.py b/src/virtualenv/discovery/py_info.py
|
||||||
|
index 0de6128..006df83 100644
|
||||||
|
--- a/src/virtualenv/discovery/py_info.py
|
||||||
|
+++ b/src/virtualenv/discovery/py_info.py
|
||||||
|
@@ -124,6 +124,9 @@ class PythonInfo(object):
|
||||||
|
prefixes = self.prefix, self.exec_prefix, self.base_prefix, self.base_exec_prefix
|
||||||
|
config_var = {k: "" if v in prefixes else v for k, v in self.sysconfig_vars.items()}
|
||||||
|
result = self.sysconfig_path(key, config_var=config_var).lstrip(os.sep)
|
||||||
|
+ # A hack for https://github.com/pypa/virtualenv/issues/2208
|
||||||
|
+ if result.startswith(u"local/"):
|
||||||
|
+ return result[6:]
|
||||||
|
return result
|
||||||
|
|
||||||
|
@staticmethod
|
@ -10,6 +10,10 @@ Source0: %{pypi_source virtualenv}
|
|||||||
# Add /usr/share/python-wheels to extra_search_dir
|
# Add /usr/share/python-wheels to extra_search_dir
|
||||||
Patch1: rpm-wheels.patch
|
Patch1: rpm-wheels.patch
|
||||||
|
|
||||||
|
# A hack/workaround for https://github.com/pypa/virtualenv/issues/2208
|
||||||
|
# This makes virtualenv's paths not contain /local/
|
||||||
|
Patch2: hack_around_local.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -155,6 +159,10 @@ rm -r tmp_path
|
|||||||
- Update to 20.8.1
|
- Update to 20.8.1
|
||||||
Resoves: rhbz#2007595
|
Resoves: rhbz#2007595
|
||||||
|
|
||||||
|
* Wed Oct 06 2021 Miro Hrončok <mhroncok@redhat.com> - 20.7.2-2
|
||||||
|
- Remove /local/ part from virtualenv paths
|
||||||
|
Resolves: rhbz#2011455
|
||||||
|
|
||||||
* Mon Aug 16 2021 Lumír Balhar <lbalhar@redhat.com> - 20.7.2-1
|
* Mon Aug 16 2021 Lumír Balhar <lbalhar@redhat.com> - 20.7.2-1
|
||||||
- Update to 20.7.2
|
- Update to 20.7.2
|
||||||
Resolves: rhbz#1991618
|
Resolves: rhbz#1991618
|
||||||
|
Loading…
Reference in New Issue
Block a user