]> git.pld-linux.org Git - packages/python-virtualenv.git/commitdiff
- adjusted multilib patch to use lib<qual> symlink even when using --always-copy... auto/th/python-virtualenv-16.0.0-2
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 24 Jul 2018 16:03:45 +0000 (18:03 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 24 Jul 2018 16:03:45 +0000 (18:03 +0200)
multilib.patch
python-virtualenv.spec

index 8955bd67aa475372d3c135e24d887f62e7c4c168..84dd1ba2f5da1ec10021cc5376ff98ee3f5c3db8 100644 (file)
@@ -55,8 +55,9 @@
 -    if os.path.lexists(lib64_link):
 +    if os.path.lexists(libarch_link):
          return
-     if symlink:
+-    if symlink:
 -        os.symlink('lib', lib64_link)
++    if True:
 +        os.symlink('lib', libarch_link)
      else:
 -        copyfile('lib', lib64_link)
          # This is hardcoded in the Python executable, but relative to
          # sys.prefix.  Debian change: we need to add the multiarch triplet
          # here, which is where the real stuff lives.  As per PEP 421, in
+--- virtualenv-16.0.0/tests/test_virtualenv.py.orig    2018-05-17 01:36:07.000000000 +0200
++++ virtualenv-16.0.0/tests/test_virtualenv.py 2018-07-23 21:40:47.981924463 +0200
+@@ -135,6 +135,8 @@
+         for root, dirs, files in os.walk(tmp_virtualenv):
+             for f in files + dirs:
+                 full_name = os.path.join(root, f)
++                if os.path.islink(full_name) and os.readlink(full_name) == "lib":
++                    continue
+                 assert not os.path.islink(full_name), "%s should not be a" \
+                     " symlink (to %s)" % (full_name, os.readlink(full_name))
+     finally:
index 93a93f196476f3baa41a710055f4a5aea1b2b9dc..c3c0a37918246935639cd983736db276918a19c6 100644 (file)
@@ -10,7 +10,7 @@ Summary:      Tool to create isolated Python environments
 Summary(pl.UTF-8):     Narzędzie do tworzenia oddzielonych środowisk Pythona
 Name:          python-virtualenv
 Version:       16.0.0
-Release:       1
+Release:       2
 License:       MIT
 Group:         Development/Languages
 #Source0Download: https://pypi.org/simple/virtualenv/
This page took 0.126187 seconds and 4 git commands to generate.