Skip to content
Snippets Groups Projects
Commit 0b274e62 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

Fix missing websocket dir for py36

parent 0053b756
No related branches found
No related tags found
No related merge requests found
...@@ -4,17 +4,26 @@ import os ...@@ -4,17 +4,26 @@ import os
import glob import glob
import platform import platform
from PyInstaller.utils.hooks import exec_statement from PyInstaller.utils.hooks import exec_statement
import websocket
from os.path import join, dirname, basename
block_cipher = None block_cipher = None
os_name = platform.system() os_name = platform.system()
binaries = [] binaries = []
data_files = [] websocket_lib_path = dirname(websocket.__file__)
websocket_cacert_file_path = join(websocket_lib_path, 'cacert.pem')
analysis_data = [
# For websocket library to find "cacert.pem" file, it must be in websocket
# directory inside of distribution directory.
# This line can be removed once PyInstaller adds hook-websocket.py
(websocket_cacert_file_path, join('.', basename(websocket_lib_path)))
]
a = Analysis(['beem/cli.py'], a = Analysis(['beem/cli.py'],
pathex=['beem'], pathex=['beem'],
binaries=binaries, binaries=binaries,
datas=data_files, datas=analysis_data,
hiddenimports=['scrypt', 'websocket'], hiddenimports=['scrypt', 'websocket'],
hookspath=[], hookspath=[],
runtime_hooks=[], runtime_hooks=[],
......
...@@ -4,17 +4,27 @@ import os ...@@ -4,17 +4,27 @@ import os
import glob import glob
import platform import platform
from PyInstaller.utils.hooks import exec_statement from PyInstaller.utils.hooks import exec_statement
import websocket
from os.path import join, dirname, basename
block_cipher = None block_cipher = None
os_name = platform.system() os_name = platform.system()
binaries = [] binaries = []
data_files = [] websocket_lib_path = dirname(websocket.__file__)
websocket_cacert_file_path = join(websocket_lib_path, 'cacert.pem')
analysis_data = [
# For websocket library to find "cacert.pem" file, it must be in websocket
# directory inside of distribution directory.
# This line can be removed once PyInstaller adds hook-websocket.py
(websocket_cacert_file_path, join('.', basename(websocket_lib_path)))
]
a = Analysis(['beem/cli.py'], a = Analysis(['beem/cli.py'],
pathex=['beem'], pathex=['beem'],
binaries=binaries, binaries=binaries,
datas=data_files, datas=analysis_data,
hiddenimports=['scrypt', 'websocket'], hiddenimports=['scrypt', 'websocket'],
hookspath=[], hookspath=[],
runtime_hooks=[], runtime_hooks=[],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment