forked from mlb2251/stitch_bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (29 loc) · 845 Bytes
/
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
PYTHON := python3
SEEDS := 3
all: build install test docs
build:
${PYTHON} -m pip install maturin --upgrade
${PYTHON} -m maturin build --release -i ${PYTHON} --universal2
install:
${PYTHON} -m pip install .
osx-setup:
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
test:
cd tests && ${PYTHON} test.py
docs: kwargs
cd docs && make html
clean:
cargo clean
kwargs:
cd scripts && ${PYTHON} gen_kwargs_listing.py > ../docs/source/generated_kwargs_table.rst
publish-test:
make all
${PYTHON} -m maturin publish --repository testpypi
${PYTHON} -m pip uninstall stitch_core
${PYTHON} -m pip install -i https://test.pypi.org/simple/ stitch-core
claim-1:
cd experiments && make claim-1
claim-2:
cd experiments && make claim-2 SEEDS=${SEEDS}
.PHONY: all build install test docs clean claim-1 claim-2