This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dairiki
Recipients
Date 2004-10-23.17:25:25
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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'
    


History
Date User Action Args
2008-01-20 09:57:15adminlinkissue1052827 messages
2008-01-20 09:57:15admincreate