You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-virtualenv/rpm-wheels.patch

17 lines
590 B

diff --git a/virtualenv.py b/virtualenv.py
index 3ccbed6..504efc8 100755
--- a/virtualenv.py
+++ b/virtualenv.py
@@ -473,7 +473,10 @@ def virtualenv_support_dirs():
# normal filesystem installation
if os.path.isdir(join(HERE, "virtualenv_support")):
- yield [join(HERE, "virtualenv_support")]
+ if os.path.isdir("/usr/share/python-wheels"):
+ yield ["/usr/share/python-wheels", join(HERE, "virtualenv_support")]
+ else:
+ yield [join(HERE, "virtualenv_support")]
elif IS_ZIPAPP:
tmpdir = tempfile.mkdtemp()
try: