-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
44 lines (36 loc) · 1.08 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
dist:
uv run python setup.py build sdist bdist_wheel
.PHONY: build
dev:
uv venv --python 3.12
uv sync --all-extras
uv run python setup.py build_ext --inplace
inplace:
uv run python setup.py build_ext --inplace
test:
uv run pytest tests.py
.PHONY: suitesparse
suitesparse:
rm -rf suitesparse
git clone --depth 1 --branch v7.5.0 /~https://github.com/DrTimothyAldenDavis/SuiteSparse suitesparse || true
cd suitesparse && rm -rf .git
.PHONY: xla
xla:
rm -rf xla
git clone /~https://github.com/openxla/xla xla
cd xla && git checkout 05f004e8368c955b872126b1c978c60e33bbc5c8 && rm -rf .git
.PHONY: pybind11
pybind11:
rm -rf pybind11
git clone --depth 1 --branch v2.13.6 /~https://github.com/pybind/pybind11 pybind11
cd pybind11 && rm -rf .git
clean:
rm -rf .venv
find . -name "dist" | xargs rm -rf
find . -name "build" | xargs rm -rf
find . -name "builds" | xargs rm -rf
find . -name "__pycache__" | xargs rm -rf
find . -name "*.so" | xargs rm -rf
find . -name "*.egg-info" | xargs rm -rf
find . -name ".ipynb_checkpoints" | xargs rm -rf
find . -name ".pytest_cache" | xargs rm -rf