New submission from samtygier <samtyg...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue8876> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com