Skip to content

Commit

Permalink
Merge pull request #17 from jupyter/jasongrout-patch-1
Browse files Browse the repository at this point in the history
Append data files instead of overwrite them
  • Loading branch information
blink1073 committed Oct 9, 2017
2 parents 0bb5d34 + be4cdc5 commit 9b95a04
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions jupyter_packaging/setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,13 @@ def run(self):
pass

result = cls.run(self)
data_files = []
for dname in data_dirs:
data_files.extend(get_data_files(dname))
# update data-files in case this created new files
self.distribution.data_files = data_files
# also update package data
if data_dirs:
data_files = self.distribution.data_files if self.distribution.data_files else []
for dname in data_dirs:
data_files.extend(get_data_files(dname))
# update data-files in case this created new files
self.distribution.data_files = data_files
# update package data
update_package_data(self.distribution)
return result
return WrappedCommand
Expand Down

0 comments on commit 9b95a04

Please sign in to comment.