Fix packaging issues
Add wordninja datafile to pyinstaller Add publishers.json to the correct package
This commit is contained in:
parent
bb81f921ff
commit
710d9bf6a5
@ -3,6 +3,7 @@
|
||||
import platform
|
||||
from os.path import join
|
||||
from comictaggerlib import ctversion
|
||||
from PyInstaller.utils.hooks import get_module_file_attribute
|
||||
|
||||
enable_console = False
|
||||
binaries = []
|
||||
@ -13,7 +14,7 @@ if platform.system() == "Windows":
|
||||
|
||||
a = Analysis(['comictagger.py'],
|
||||
binaries=binaries,
|
||||
datas=[('comictaggerlib/ui/*.ui', 'ui'), ('comictaggerlib/graphics', 'graphics')],
|
||||
datas=[('comictaggerlib/ui/*.ui', 'ui'), ('comictaggerlib/graphics', 'graphics'), ('comicapi/data', 'comicapi/data'),(os.path.join(os.path.dirname(get_module_file_attribute('wordninja')),"wordninja"), "wordninja")],
|
||||
hiddenimports=['PIL'],
|
||||
hookspath=[],
|
||||
runtime_hooks=[],
|
||||
|
4
setup.py
4
setup.py
@ -54,9 +54,7 @@ setup(
|
||||
author_email="comictagger@gmail.com",
|
||||
url="https://github.com/comictagger/comictagger",
|
||||
packages=["comictaggerlib", "comicapi"],
|
||||
package_data={
|
||||
"comictaggerlib": ["ui/*", "graphics/*", "data/*"],
|
||||
},
|
||||
package_data={"comictaggerlib": ["ui/*", "graphics/*"], "comicapi": ["data/*"]},
|
||||
entry_points=dict(console_scripts=["comictagger=comictaggerlib.main:ctmain"]),
|
||||
classifiers=[
|
||||
"Development Status :: 4 - Beta",
|
||||
|
Loading…
Reference in New Issue
Block a user