From 9ac99d55d2b047ad67272efb1530a80b1d77ee75 Mon Sep 17 00:00:00 2001 From: Ilia Date: Sun, 29 Mar 2026 00:23:32 +0300 Subject: [PATCH] added install and examples --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0de9c7659..209d1e4a0 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,16 @@ dist: test: python3 -m unittest discover --start-directory tests/python --pattern "bindings_test*.py" +examples: + @for f in examples/python/example*.py; do \ + echo "=== $$f ==="; \ + python3 "$$f" || exit 1; \ + done + +install: + pip install . + clean: rm -rf *.egg-info build dist tmp var tests/__pycache__ hnswlib.cpython*.so -.PHONY: dist +.PHONY: dist test examples install clean