Skip to content

Commit

Permalink
GUI-1081,
Browse files Browse the repository at this point in the history
copied locale files in setup.py
  • Loading branch information
dkavanagh committed Jun 19, 2014
1 parent 1786e9c commit ffd1b31
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@

from eucaconsole import __version__

DATA_DIR='./'

def get_data_files(path):
data_files = {}
for root, _, filenames in os.walk(path, followlinks=True):
data_file_dir = os.path.join(DATA_DIR, root)
for filename in filenames:
data_files.setdefault(data_file_dir, [])
data_files[data_file_dir].append(os.path.join(root, filename))
return list(data_files.items())


DATA_FILES = get_data_files("eucaconsole/locale")

here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
Expand Down Expand Up @@ -138,6 +151,7 @@ def make_release_tree(self, base_dir, files):
'dev': dev_extras,
},
message_extractors=message_extractors,
data_files=DATA_FILES,
test_suite="tests",
entry_points="""\
[paste.app_factory]
Expand Down

0 comments on commit ffd1b31

Please sign in to comment.