-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (16 loc) · 797 Bytes
/
Makefile
File metadata and controls
20 lines (16 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: clean, compile, dist
.DEFAULT_GOAL := compile
clean:
### Files for older versions of stochastic_arrow are in arrow or stochastic_arrow folder
rm -rf arrow/arrowhead*.so arrow/arrowhead.c arrow/arrowhead.html
rm -rf stochastic_arrow/arrowhead*.so stochastic_arrow/arrowhead.c stochastic_arrow/arrowhead.html build/ dist/ MANIFEST .pytest_cache/ stochastic_arrow.egg-info/
### Newer versions of stochastic_arrow are in src/stochastic_arrow folder
rm -rf src/stochastic_arrow/arrowhead*.so src/stochastic_arrow/arrowhead.c src/stochastic_arrow/arrowhead.html src/stochastic_arrow.egg-info/
find . -name "*.pyc" -delete
find . -name "__pycache__" -delete
compile:
USE_CYTHON=1 python -m pip install -e .
test: clean compile
pytest test
dist:
USE_CYTHON=1 python -m build --sdist