[New-bugs-announce] [issue8876] distutils should not assume that hardlinks will work

samtygier 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
http://thread.gmane.org/gmane.comp.python.distutils.devel/2076

----------
assignee: tarek
components: Distutils
files: hardlink-traceback.txt
messages: 106881
nosy: samtygier, tarek
priority: normal
severity: normal
status: open
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>
<http://bugs.python.org/issue8876>
_______________________________________


More information about the New-bugs-announce mailing list