Skip to content

Commit

Permalink
Exclude unnecessary packages on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mzsm committed Jun 23, 2024
1 parent 76d9427 commit 5a24007
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 162 deletions.
8 changes: 7 additions & 1 deletion backend_windows.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ a = Analysis(
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
excludes=[
'pip',
'pyinstaller',
'pyinstaller-hooks-contrib',
'pyyaml',
'setuptools',
],
noarchive=False,
optimize=1,
)
Expand Down
157 changes: 2 additions & 155 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ python = ">=3.12.1,<3.13"
faster-whisper = "^1.0.2"
mlx = { version = "^0.15.0", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }
mlx-whisper = { version = "^0.1.0", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }
numba = "^0.60.0"
numpy = "^2.0.0"
torch = "^2.3.1"
numba = { version = "^0.60.0", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }
numpy = { version = "^2.0.0", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }
torch = { version = "^2.3.1", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }
tqdm = "^4.66.4"
more-itertools = "^10.3.0"
tiktoken = "^0.7.0"
more-itertools = { version = "^10.3.0", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }
tiktoken = { version = "^0.7.0", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }
huggingface-hub = "^0.23.4"
scipy = "^1.13.1"
scipy = { version = "^1.13.1", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }
ujson = "^5.10.0"
pyinstaller = "^6.8.0"
ctranslate2 = "^4.3.1"
Expand Down

0 comments on commit 5a24007

Please sign in to comment.