[New-bugs-announce] [issue8876] distutils should not assume that hardlinks will work
report at bugs.python.org
Wed Jun 2 15:38:36 CEST 2010
New submission from samtygier <samtygier at yahoo.co.uk>:
distutils will currently try to use hardlinks if os has a 'link' attribute, however sometimes os.link() will fail, for example the filesystem may not support it (see attached traceback).
in commands/sdist.py in make_release_tree() there is the test:
if hasattr(os, 'link'): # can make hard links on this system
link = 'hard'
msg = "making hard links in %s..." % base_dir
'link' is then passed to copy_file() in file_util.py, which trusts that if link == 'hard', then hardlinking will work.
there has been discussion in the past, but i dont think it has been fixed
nosy: samtygier, tarek
title: distutils should not assume that hardlinks will work
versions: Python 2.6
Added file: http://bugs.python.org/file17521/hardlink-traceback.txt
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce