summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_py.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-11-02 17:01:46 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2013-11-02 17:01:46 (GMT)
commitca9242f4f9c5bd496b578a4a2b2ed5fa91d94095 (patch)
treec0f12b4395f5bf56f6fd7c88971501e46f84fd15 /Lib/distutils/command/build_py.py
parent0aade6258c424799282f5ff82d5997a008168b35 (diff)
parent32bf5e1273621c926e21274afec12f4fea97fb03 (diff)
downloadcpython-ca9242f4f9c5bd496b578a4a2b2ed5fa91d94095.zip
cpython-ca9242f4f9c5bd496b578a4a2b2ed5fa91d94095.tar.gz
cpython-ca9242f4f9c5bd496b578a4a2b2ed5fa91d94095.tar.bz2
Merge with 3.2 for Issue #19286.
Diffstat (limited to 'Lib/distutils/command/build_py.py')
-rw-r--r--Lib/distutils/command/build_py.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_py.py b/Lib/distutils/command/build_py.py
index 1371b3d..d48eb69 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):