Skip to content

Commit a5969f5

Browse files
committed
gguf-py : avoid requiring pyside6 for other scripts
- nix : add pyside6 as a python dependency to include it in *-extra shells
1 parent 6602304 commit a5969f5

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.devops/nix/python-scripts.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ let
1818
gguf-py
1919
tqdm
2020

21+
# for the graphical GGUF editor
22+
pyside6
23+
2124
# for scripts/compare-llama-bench.py
2225
gitpython
2326
tabulate

gguf-py/gguf/scripts/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
from .gguf_dump import main as gguf_dump_entrypoint
55
from .gguf_set_metadata import main as gguf_set_metadata_entrypoint
66
from .gguf_new_metadata import main as gguf_new_metadata_entrypoint
7-
from .gguf_editor_gui import main as gguf_editor_gui_entrypoint
7+
8+
try: # has optional dependencies which should not matter for the other scripts
9+
from .gguf_editor_gui import main as gguf_editor_gui_entrypoint
10+
except ImportError:
11+
pass

gguf-py/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gguf"
3-
version = "0.16.2"
3+
version = "0.16.3"
44
description = "Read and write ML models in GGUF for GGML"
55
authors = ["GGML <[email protected]>"]
66
packages = [

0 commit comments

Comments
 (0)