summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 2fce5faa39d..465f40b1f0a 100644
--- a/setup.py
+++ b/setup.py
@@ -24,9 +24,9 @@ def py2exe_datafiles():
import babel
data_files['babel/localedata'] = glob(join(dirname(babel.__file__), 'localedata', '*'))
others = ['global.dat', 'numbers.py', 'support.py', 'plural.py']
- data_files['babel'] = map(lambda f: join(dirname(babel.__file__), f), others)
+ data_files['babel'] = [join(dirname(babel.__file__), f) for f in others]
others = ['frontend.py', 'mofile.py']
- data_files['babel/messages'] = map(lambda f: join(dirname(babel.__file__), 'messages', f), others)
+ data_files['babel/messages'] = [join(dirname(babel.__file__), 'messages', f) for f in others]
import pytz
tzdir = dirname(pytz.__file__)
@@ -51,7 +51,7 @@ def py2exe_datafiles():
for f in filenames
if not f.endswith(('.py', '.pyc', '.pyo'))]
- return data_files.items()
+ return list(data_files.items())
def py2exe_options():
@@ -128,7 +128,7 @@ setup(
url=url,
author=author,
author_email=author_email,
- classifiers=filter(None, classifiers.split('\n')),
+ classifiers=[c for c in classifiers.split('\n') if c],
license=license,
scripts=['setup/odoo'],
packages=find_packages(),