Added hidden import to build scripts for jpeg2000

This commit is contained in:
Joey Payne 2015-04-23 12:49:43 -06:00
commit 8ee321e846
5 changed files with 7 additions and 7 deletions

View file

@ -1,11 +1,11 @@
rm -rf Web2ExeLinux-CMD
pyinstaller --onefile --hidden-import configobj --distpath Web2ExeLinux-CMD -n web2exe-linux command_line.py
pyinstaller --onefile --hidden-import PIL.Jpeg2KImagePlugin --hidden-import configobj --distpath Web2ExeLinux-CMD -n web2exe-linux command_line.py
cp -rf files Web2ExeLinux-CMD/files
rm -rf Web2ExeLinux-CMD/files/downloads/*
rm -rf Web2ExeLinux
pyinstaller -F --hidden-import configobj -n web2exe --distpath Web2ExeLinux main.py
pyinstaller -F --hidden-import PIL.Jpeg2KImagePlugin --hidden-import configobj -n web2exe --distpath Web2ExeLinux main.py
cp -rf files Web2ExeLinux/files
rm -rf Web2ExeLinux/files/downloads/*

View file

@ -1,5 +1,5 @@
rm -rf Web2ExeMac-CMD/files
pyinstaller --hidden-import configobj --distpath Web2ExeMac-CMD --onefile -n web2exe-mac command_line.py
pyinstaller --hidden-import Jpeg2KImagePlugin --hidden-import configobj --distpath Web2ExeMac-CMD --onefile -n web2exe-mac command_line.py
cp -rf files Web2ExeMac-CMD/files/
rm -rf build dist Web2Executable.app

View file

@ -11,7 +11,7 @@ APP = ['main.py']
DATA_FILES = ['files']
OPTIONS = {
'iconfile': 'icon.icns',
'includes': ['PySide.QtCore', 'PySide.QtGui', 'PySide.QtNetwork', 'configobj'],
'includes': ['PySide.QtCore', 'PySide.QtGui', 'PySide.QtNetwork', 'configobj', 'PIL.Jpeg2KImagePlugin'],
'packages': ['PIL'],
'excludes': ['numpy', 'matplotlib', 'PyQt5', 'PySide.QtXmlPatterns', 'PySide.QtWebEngineCore', 'PySide.QtDesigner', 'PySide.QtScript', 'PySide.QtWebkit', 'Cython', 'selenium', 'scapy', 'pytz', 'pygments', 'pip', 'netaddr', 'mercurial', 'cx_Freeze', 'bpython', 'astroid', 'Shiboken', 'PyInstaller', 'sip', 'llvmpy', 'llvm', 'pylint', 'unittest', 'pysideuic', 'email', 'Tkinter', 'multiprocessing', 'yaml', 'logilab', 'urwid', 'test', 'networkx' ],
'dylib_excludes':['QtXml.framework', 'QtWebkit.framework', 'QtScript.framework', 'QtDesigner.framework', 'QtWebEngineCore.framework', 'QtXmlPatterns.framework', 'QtNetwork.framework', 'QtGui.framework', 'QtCore.framework']

View file

@ -1,8 +1,8 @@
rd /S /Q Web2ExeWin
call pyinstaller --onefile --hidden-import configobj -i icon.ico --distpath command_line_builds -n web2exe-win command_line.py
call pyinstaller --onefile --hidden-import PIL.Jpeg2KImagePlugin --hidden-import configobj -i icon.ico --distpath command_line_builds -n web2exe-win command_line.py
rd /S /Q command_line_builds\files
echo D | xcopy /s files command_line_builds\files
call pyinstaller -w --onefile --hidden-import configobj -i icon.ico --distpath Web2ExeWin -n Web2Exe main.py
call pyinstaller -w --onefile --hidden-import PIL.Jpeg2KImagePlugin --hidden-import configobj -i icon.ico --distpath Web2ExeWin -n Web2Exe main.py
echo D | xcopy /s files Web2ExeWin\files

View file

@ -1,6 +1,6 @@
from utils import log, open_folder_in_explorer
__gui_version__ = "v0.2.1b"
__gui_version__ = "v0.2.2b"
import os
import re