diff --git a/tcp_server/src/setup.py b/tcp_server/src/setup.py index 37bd7a2c..46aba299 100644 --- a/tcp_server/src/setup.py +++ b/tcp_server/src/setup.py @@ -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',