[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

Chris Withers report at bugs.python.org
Wed Sep 15 17:50:06 CEST 2010


Chris Withers <chris at simplistix.co.uk> added the comment:

Okay, so here's the patch:

Change line 352 on distutils/filelist.py from:

pattern_re = "^" + os.path.join(prefix_re, ".*" + pattern_re)

To:

pattern_re = "^"+prefix_re+re.escape(os.sep)+".*"+pattern_re

os.path.join is is not always the saviour ;-)

----------
keywords: +needs review -patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6884>
_______________________________________


More information about the Python-bugs-list mailing list