Commit 0d2f41e9 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

remove unused `build.py`

parent 1dd3282f
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"
]
# generate the .spec file and run PyInstaller
pyi_run(args)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment