Message60589
On unix platforms, if one has a dangling symlink
anywhere in ones source directory tree (and a
MANIFEST.in file), 'setup.py sdist' will fail.
('OSError: [Errno 2] No such file or directory' on the
dangling symlink.)
A fix for this is for filefind.findall to use
os.lstat() instead of os.stat() (when lstat is available.)
(Another possible fix would be to catch the
OSError(ENOENT) exception and either ignore it or
render it as a warning.)
Appendix A
Details on how to reproduce the bug:
In your top-level source directory (the one with a
setup.py):
1. Create a dangling symlink. ('ln -s foo bar',
assuming the file 'foo' doesn't exist.)
2. Do a 'touch MANIFEST.in'
3. Run 'python setup.py sdist'
The command should fail with:
'error: bar: No such file or directory'
|
|
Date |
User |
Action |
Args |
2008-01-20 09:57:15 | admin | link | issue1052827 messages |
2008-01-20 09:57:15 | admin | create | |
|