diff --git a/hack_around_local.patch b/hack_around_local.patch new file mode 100644 index 0000000..a34a5c8 --- /dev/null +++ b/hack_around_local.patch @@ -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 diff --git a/python-virtualenv.spec b/python-virtualenv.spec index cc15867..38e70b3 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -10,6 +10,10 @@ Source0: %{pypi_source virtualenv} # Add /usr/share/python-wheels to extra_search_dir 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 BuildRequires: python3-devel @@ -155,6 +159,10 @@ rm -r tmp_path - Update to 20.8.1 Resoves: rhbz#2007595 +* Wed Oct 06 2021 Miro Hrončok - 20.7.2-2 +- Remove /local/ part from virtualenv paths +Resolves: rhbz#2011455 + * Mon Aug 16 2021 Lumír Balhar - 20.7.2-1 - Update to 20.7.2 Resolves: rhbz#1991618