-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 720 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 720 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
31
32
.PHONY: install build clean test
SHELL = /bin/bash
PYTHON = $(shell which python3)
default: bin/python3
bin/python3:
virtualenv . -p ${PYTHON} --no-site-packages
bin/pip3 install --upgrade pip wheel
bin/pip3 install -r requirements.txt
build: bin/python3
rm -Rf build/
find lib/ -type d -name "pdsa" -exec rm -Rf {} +
bin/python3 setup.py build_py
bin/python3 setup.py build_ext --inplace --force
install: build
bin/python3 setup.py install --force
clean:
# virtualenv
rm -Rf bin include lib local share
# buildout and pip
rm -Rf develop-eggs eggs *.egg-info
rm -Rf src parts build dist
rm -Rf .installed.cfg pip-selfcheck.json
rm -Rf cythonize.json
test:
bin/py.test -m 'not ignore' --pep8 tests