Skip to content

Commit

Permalink
cibuildwheels build process
Browse files Browse the repository at this point in the history
  • Loading branch information
mtasic85 committed Jul 9, 2024
1 parent 62dd8be commit 2e9fec2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ huggingface-hub = "^0.23.4"
cffi = "^1.16.0"
setuptools = "^70.2.0"

[tool.poetry.scripts]
build-all = "scripts.build_all:build"
build-clean = "scripts.build_clean:clean"
build-libllama-cli = "scripts.build_libllama_cli:build"
build-llama-cli-cffi = "scripts.build_llama_cli_cffi:build"
# [tool.poetry.scripts]
# build-all = "scripts.build_all:build"
# build-clean = "scripts.build_clean:clean"
# build-libllama-cli = "scripts.build_libllama_cli:build"
# build-llama-cli-cffi = "scripts.build_llama_cli_cffi:build"

[tool.poetry.group.dev.dependencies]
cibuildwheel = "^2.19.2"
Expand Down
12 changes: 9 additions & 3 deletions scripts/build_all.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import subprocess

import build_clean
import build_libllama_cli
import build_llama_cli_cffi

def build(*args, **kwargs):
print(f'build {args = }, {kwargs = }')
subprocess.run(['poetry', 'run', 'build-clean'])
subprocess.run(['poetry', 'run', 'build-libllama-cli'])
subprocess.run(['poetry', 'run', 'build-llama-cli-cffi'])
# subprocess.run(['poetry', 'run', 'build-clean'])
# subprocess.run(['poetry', 'run', 'build-libllama-cli'])
# subprocess.run(['poetry', 'run', 'build-llama-cli-cffi'])
build_clean.clean()
build_libllama_cli.build()
build_llama_cli_cffi.build()


if __name__ == '__main__':
Expand Down

0 comments on commit 2e9fec2

Please sign in to comment.