[issue21318] sdist fails with symbolic links do non-existing files

2019-04-10 Thread Cheryl Sabella


Cheryl Sabella  added the comment:

This was fixed under issue 12885.

--
nosy: +cheryl.sabella
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> distutils.filelist.findall() fails on broken symlink in Py2.x

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21318] sdist fails with symbolic links do non-existing files

2014-04-20 Thread Jan Gosmann

New submission from Jan Gosmann:

If there is a symbolic link to a non-existing file anywhere in the source tree 
python setup.py sdist fails with an output like the following:

running sdist
running check
warning: check: missing required meta-data: url

error: abc: No such file or directory

Pruning the problematic path with a MANIFEST.in file does not help.

I could locate the culprit in filelist.py 
http://hg.python.org/cpython/file/c82dcad83438/Lib/distutils/filelist.py in 
line 267:

stat = os.stat(fullname)

fails for symlinks to non-existing files. Maybe os.lstat should be used? Or it 
should be checked before os.stat if it is a symlink to a nonexisting file?

In case you wonder why I have links to non-existing files in my source tree: 
Those can be left behind by automated tests I'm using and are not supposed to 
be part of the source (or any other) distribution. But as I said, the error is 
not prevented by excluding them with a MANIFEST.in file. My current workaround 
is to delete all the leftovers from the test as first thing in setup.py.

--
components: Distutils
messages: 216930
nosy: dstufft, eric.araujo, jgosmann
priority: normal
severity: normal
status: open
title: sdist fails with symbolic links do non-existing files
type: behavior
versions: Python 2.7, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com