Skip to content

Commit

Permalink
Redo the fix for #178.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaulo committed Apr 22, 2018
1 parent 3b3d333 commit 80693ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/artisan-linux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ a = Analysis(['artisan.py'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)

# Remove pyi_rth_mplconfig.py useless because it makes our startup slow.
# This hook only applies to one-file distributions.
for s in a.scripts:
if s[0] == 'pyi_rth_mplconfig':
a.scripts.remove(s)
break

pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
Expand Down
3 changes: 0 additions & 3 deletions src/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ else
ln -s /usr/lib/libusb-1.0.so.0
fi

# Render pyi_rth_mplconfig.py useless because it makes our startup slow
echo > $PYTHON_PATH/PyInstaller/loader/rthooks/pyi_rth_mplconfig.py

pyinstaller -D -n artisan -y -c --hidden-import scipy._lib.messagestream \
--log-level=INFO artisan-linux.spec

Expand Down

0 comments on commit 80693ed

Please sign in to comment.