From cb55107fe1ae856766ab938770a53f5c852293c0 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Tue, 16 Sep 2014 12:10:32 +0200 Subject: [PATCH] [FIX] packaging: windows: passlib dependency was not correctly set --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index ab32e4e9d8a..fd34315dfa2 100644 --- a/setup.py +++ b/setup.py @@ -40,6 +40,12 @@ def py2exe_datafiles(): base = join('docutils', root[len(dudir) + 1:]) data_files[base] = [join(root, f) for f in filenames if not f.endswith(('.py', '.pyc', '.pyo'))] + import passlib + pl = dirname(passlib.__file__) + for root, _, filenames in os.walk(pl): + base = join('passlib', root[len(pl) + 1:]) + data_files[base] = [join(root, f) for f in filenames if not f.endswith(('.py', '.pyc', '.pyo'))] + return data_files.items() @@ -77,6 +83,7 @@ def py2exe_options(): 'mock', 'openerp', 'openid', + 'passlib', 'PIL', 'poplib', 'psutil',