Skip to content

Commit

Permalink
at least runs locally..
Browse files Browse the repository at this point in the history
  • Loading branch information
gidden committed May 19, 2018
1 parent 6b54569 commit f19e998
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def run(self):
self._clean_dirs()


def all_files(path, strip=None):
paths = [os.path.join(path, '*')]
def all_subdirs(path, strip=None):
paths = []
for root, dirnames, filenames in os.walk(path):
for dirname in dirnames:
paths.append(os.path.join(root, dirname, '*'))
Expand All @@ -62,8 +62,10 @@ def main():
'install': Cmd,
}
pack_data = {
'message_ix': all_files('message_ix/model', strip='message_ix'),
'message_ix': all_subdirs('message_ix/model', strip='message_ix') +
['model/*gms', 'model/*opt'],
}
print(pack_data)
setup_kwargs = {
"name": "message_ix",
"version": INFO['version'],
Expand Down

0 comments on commit f19e998

Please sign in to comment.