diff --git a/freezing/freeze.sh b/freezing/freeze.sh index 2198a4d4..a232079e 100755 --- a/freezing/freeze.sh +++ b/freezing/freeze.sh @@ -8,6 +8,8 @@ pyinstaller --clean -y \ --exclude-module matplotlib \ --exclude-module pytz \ --exclude-module sphinx \ +--exclude-module numpy \ +--exclude-module scipy \ aligner/command_line/train_and_align.py pyinstaller --clean -y \ @@ -16,6 +18,8 @@ pyinstaller --clean -y \ --exclude-module matplotlib \ --exclude-module pytz \ --exclude-module sphinx \ +--exclude-module numpy \ +--exclude-module scipy \ aligner/command_line/align.py cd dist diff --git a/freezing/hooks/hook-aligner.py b/freezing/hooks/hook-aligner.py index 392dbd4d..be68040c 100644 --- a/freezing/hooks/hook-aligner.py +++ b/freezing/hooks/hook-aligner.py @@ -6,10 +6,12 @@ collect_data_files, collect_dynamic_libs) hiddenimports=['six','packaging', 'packaging.version', 'packaging.specifiers', - 'packaging.requirements', 'scipy', 'scipy.linalg', 'scipy.integrate'] + 'packaging.requirements'] thirdparty_dir = os.path.abspath(os.path.join('thirdparty','bin')) -binaries = [( os.path.join(thirdparty_dir, x), 'thirdparty/bin') for x in os.listdir(thirdparty_dir) +binaries = [( os.path.join(thirdparty_dir, x), 'thirdparty/bin') + for x in os.listdir(thirdparty_dir) + if not x.endswith('dylib') ]