move back to root

This commit is contained in:
Bruce MacDonald
2023-06-27 12:12:44 -04:00
parent e07d81c7f1
commit 6599268d78
5 changed files with 0 additions and 0 deletions

19
build.py Normal file
View File

@@ -0,0 +1,19 @@
import site
import os
from PyInstaller.__main__ import run as pyi_run
# the llama_cpp directory is not included if not explicitly added
site_packages_dir = site.getsitepackages()[0]
llama_cpp_dir = os.path.join(site_packages_dir, "llama_cpp")
args = [
"ollama.py",
"--paths",
site_packages_dir,
"--add-data",
f"{llama_cpp_dir}{os.pathsep}llama_cpp",
"--onefile"
]
# generate the .spec file and run PyInstaller
pyi_run(args)