diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-02 17:04:51 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-11-02 17:04:51 (GMT) |
commit | e71fb28519185cecbec08e0b00f3717b16b072fd (patch) | |
tree | e714ece53560b21b885a69d54cae2b084926f4ce /Lib/distutils/command/build_py.py | |
parent | 32dfef81a2c99d755c485ea5399d28b52d37a9e0 (diff) | |
parent | ca9242f4f9c5bd496b578a4a2b2ed5fa91d94095 (diff) | |
download | cpython-e71fb28519185cecbec08e0b00f3717b16b072fd.zip cpython-e71fb28519185cecbec08e0b00f3717b16b072fd.tar.gz cpython-e71fb28519185cecbec08e0b00f3717b16b072fd.tar.bz2 |
Merge with 3.3 for Issue #19286.
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r-- | Lib/distutils/command/build_py.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py index 677723f..9100b96 100644 --- a/Lib/distutils/command/build_py.py +++ b/Lib/distutils/command/build_py.py @@ -127,7 +127,8 @@ class build_py (Command): # Each pattern has to be converted to a platform-specific path filelist = glob(os.path.join(src_dir, convert_path(pattern))) # Files that match more than one pattern are only added once - files.extend([fn for fn in filelist if fn not in files]) + files.extend([fn for fn in filelist if fn not in files + and os.path.isfile(fn)]) return files def build_package_data(self): |