-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 711 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (21 loc) · 711 Bytes
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
.PHONY: all clean uninstall install benchmark test dist sdist twine
all:
@grep -Ee '^[a-z].*:' Makefile | cut -d: -f1 | grep -vF all
clean:
rm -rf build/ dist/ *.egg-info/ expm/*.c expm/*.so expm/*.h expm/__pycache__ benchmarks/__pycache__
uninstall: clean
@echo pip uninstalling expm
$(shell pip uninstall -y expm >/dev/null 2>/dev/null)
$(shell pip uninstall -y expm >/dev/null 2>/dev/null)
$(shell pip uninstall -y expm >/dev/null 2>/dev/null)
install: uninstall
python setup.py install
benchmark:
python benchmarks/benchmarks.py
test:
python test/test_*.py
dist: install
python setup.py sdist
sdist: dist
twine: dist
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*