Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b96c4a46
Commit
b96c4a46
authored
Nov 02, 2013
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19286: [distutils] Only match files in build_py.find_data_files.
parent
8a68e42e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Lib/distutils/command/build_py.py
Lib/distutils/command/build_py.py
+2
-1
No files found.
Lib/distutils/command/build_py.py
View file @
b96c4a46
...
@@ -127,7 +127,8 @@ class build_py (Command):
...
@@ -127,7 +127,8 @@ class build_py (Command):
# Each pattern has to be converted to a platform-specific path
# Each pattern has to be converted to a platform-specific path
filelist
=
glob
(
os
.
path
.
join
(
src_dir
,
convert_path
(
pattern
)))
filelist
=
glob
(
os
.
path
.
join
(
src_dir
,
convert_path
(
pattern
)))
# Files that match more than one pattern are only added once
# 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
return
files
def
build_package_data
(
self
):
def
build_package_data
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment