Skip to content

Commit

Permalink
fix(bin): adds support to copy startup scripts in install_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeunix committed Jun 17, 2015
1 parent 9c1b00f commit 9a2cb51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
app_content[root].append(filepath)

conf_files = [('conf', glob('app/settings/*-example'))]
bin_files = defaultdict(list)
for root, dirs, files in os.walk('bin'):
for filename in files:
filepath = os.path.join(root, filename)
bin_files[root].append(filepath)
log_dir = [('logs', '')]


Expand All @@ -41,7 +46,7 @@ def find_version(file_path):
url='http://www.citoengine.org',
license='Apache Software License 2.0',
package_dir={'': 'app'},
data_files=app_content.items()+conf_files+log_dir,
data_files=app_content.items()+conf_files+bin_files.items()+log_dir,
**setup_kwargs
)

0 comments on commit 9a2cb51

Please sign in to comment.