1
1
mirror of https://github.com/leon-ai/leon.git synced 2025-01-03 06:06:06 +03:00

fix(tcp server): include private libraries of the tokenizers package

This commit is contained in:
louistiti 2022-10-06 01:25:26 +08:00
parent 3361d9b37e
commit 6146fa1f15
No known key found for this signature in database
GPG Key ID: 0A1C3B043E70C77D

View File

@ -1,4 +1,5 @@
from cx_Freeze import setup, Executable
import sysconfig
options = {
'build_exe': {
@ -12,13 +13,14 @@ options = {
'srsly.msgpack.util',
'blis',
'cymem'
],
'include_files': [
'tcp_server/src/.venv/lib/python3.9/site-packages/tokenizers',
]
}
}
# Include private libraries from the tokenizers package for Linux
if 'linux' in sysconfig.get_platform():
options['build_exe']['include_files'] = 'tcp_server/src/.venv/lib/python3.9/site-packages/tokenizers.libs'
executables = [
Executable(
script='tcp_server/src/main.py',