[Distutils] Bug in setuptool's findall

Aaron Staley astaley at berkeley.edu
Fri Sep 25 15:54:50 CEST 2009


Hello,
    setuptools replaces distutl's findall() with:

    for base, dirs, files in os.walk(dir):
        print 'walk', base, dirs, files
        if base==os.curdir or base.startswith(os.curdir+os.sep):
            base = base[2:]
        if base:
            files = [os.path.join(base, f) for f in files]
        all_files.extend(filter(os.path.isfile, files))



This unfortunately will not follow directory symlinks (as followlinks is 
set to false in os.walk by default).  This is NOT the behavior of the 
original findall; oddly enough, the new findall actually produces bugs 
relative to distutil's.


-Aaron


More information about the Distutils-SIG mailing list