Eryk Sun added the comment:
This is still a problem with WinAPI CreateSymbolicLinkW. It fails to replace
slashes with backslashes in the substitute path if it's a relative path, which
creates a broken link. As a workaround, os.symlink should replace slashes with
backslashes in relative
Tim Golden added the comment:
eryksun: could you essay a patch? I'd be happy to review apply it.
--
nosy: +tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13702
___
Andreas Gäer added the comment:
Is there any progress to the question if the problem should be fixed in
os.symlink or in tarfile?
Because this currently seems to break installing source packages that contain
symlinks with pip under Windows.
Try: pip install networkx==1.8.1 for example
eryksun added the comment:
This should be fixed in os.symlink. The Windows CreateSymbolicLink function
can't be relied on to translate slash to backslash. It only normalizes an
absolute link, or a path that's relative to the current working directory on a
drive (e.g. R:../crypto) since that's
Lars Gustäbel l...@gustaebel.de added the comment:
You actually hit two bugs at the same time here: The target of the created
symlink was not translated from unix to windows path delimiters and is
therefore broken. The second bug is issue12926 which leads to the error in
TarFile.makefile().
Patrick von Reth patrick.vonr...@gmail.com added the comment:
to ignore the bug I also tried dereference=True, but it looks like python3 is
ignoring it for extraction.
Is this the normal behavior or just another bug?
--
___
Python tracker
Lars Gustäbel l...@gustaebel.de added the comment:
The dereference option is only used for archive creation, so the contents of
the file a symbolic link is pointing to is added instead of the symbolic link
itself.
--
___
Python tracker
New submission from Patrick von Reth patrick.vonr...@gmail.com:
when extracting http://www.openssl.org/source/openssl-1.0.0d.tar.gz with
python3.2 on windows 7 extraction fails with
File C:\python32\lib\tarfile.py, line 2175, in extract
set_attrs=set_attrs)
File
Changes by Patrick von Reth patrick.vonr...@gmail.com:
--
title: relative symlinks in tarfile.extract broken - relative symlinks in
tarfile.extract broken (windows)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13702
Changes by Brian Curtin br...@python.org:
--
nosy: +brian.curtin
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13702
___
___
Changes by Lars Gustäbel l...@gustaebel.de:
--
assignee: - lars.gustaebel
nosy: +lars.gustaebel
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13702
___
11 matches
Mail list logo