Sisyphus repository
Last update: 13 october 2019 | SRPMs: 17513 | Visits: 15258652
en ru br
ALT Linux repos
S:16.7.2-alt1
5.0: 1.3.3-alt1

Group :: Development/Python
RPM: python-module-virtualenv

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: allow_internal_symlinks.patch
Download


Только в virtualenv-15.0.3.new: build
Только в virtualenv-15.0.3.new: o.py
Только в virtualenv-15.0.3.new: pytestdebug.log
Только в virtualenv-15.0.3.new: tags
Только в virtualenv-15.0.3.new/tests: __init__.pyc
Только в virtualenv-15.0.3.new/tests: __pycache__
diff -ur virtualenv-15.0.3/tests/test_virtualenv.py virtualenv-15.0.3.new/tests/test_virtualenv.py
--- virtualenv-15.0.3/tests/test_virtualenv.py	2016-09-05 06:21:28.000000000 +0000
+++ virtualenv-15.0.3.new/tests/test_virtualenv.py	2016-09-05 10:01:27.286457389 +0000
@@ -135,7 +135,8 @@
         for root, dirs, files in os.walk(tmp_virtualenv):
             for f in files + dirs:
                 full_name = os.path.join(root, f)
-                assert not os.path.islink(full_name), "%s should not be a" \
-                    " symlink (to %s)" % (full_name, os.readlink(full_name))
+                assert os.path.realpath(full_name).startswith(tmp_virtualenv) or \
+                        not os.path.islink(full_name), \
+                        "%s should not be a symlink (to %s)" % (full_name, os.readlink(full_name))
     finally:
         shutil.rmtree(tmp_virtualenv)
Только в virtualenv-15.0.3.new: virtualenv.egg-info
diff -ur virtualenv-15.0.3/virtualenv.py virtualenv-15.0.3.new/virtualenv.py
--- virtualenv-15.0.3/virtualenv.py	2016-09-05 06:21:28.000000000 +0000
+++ virtualenv-15.0.3.new/virtualenv.py	2016-09-05 09:59:01.923897803 +0000
@@ -1536,10 +1536,7 @@
         "Unexpected parent dir: %r" % lib_parent)
     if os.path.lexists(lib64_link):
         return
-    if symlink:
-        os.symlink('lib', lib64_link)
-    else:
-        copyfile('lib', lib64_link)
+    os.symlink('lib', lib64_link)
 
 def resolve_interpreter(exe):
     """
Только в virtualenv-15.0.3.new: virtualenv.pyc
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin