Not nice, but resolves https://bugzilla.redhat.com/2011455 for nowepel9
parent
8b5ddff449
commit
4d22e158ea
@ -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
|
Loading…
Reference in new issue