forked from PacificBiosciences/FALCON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
49 lines (39 loc) · 1.23 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
44
45
46
47
48
49
# Feel free to override this.
ifndef PYTHONUSERBASE
PYTHONUSERBASE:=LOCAL
PATH:=${PYTHONUSERBASE}/bin:${PATH}
export PYTHONUSERBASE
export PATH
endif
WHEELHOUSE?=wheelhouse
PIP=pip wheel --wheel-dir ${WHEELHOUSE}
MY_TEST_FLAGS?=-v -s --durations=0
DOCTEST_MODULES= falcon_kit/functional.py falcon_kit/mains/consensus_task.py falcon_kit/mains/las_merge_split.py
install-edit:
pip -v install --user --edit .
install: wheel
pip -v install --user --use-wheel --find-links=dist/ .
pylint:
pylint --errors-only falcon_kit/
test:
python -c 'import falcon_kit; print falcon_kit.falcon'
which py.test || pip install --user pytest
py.test ${MY_TEST_FLAGS} --junit-xml=test.xml --doctest-modules ${DOCTEST_MODULES} test/
autopep8:
autopep8 --max-line-length=120 -ir -j0 falcon_kit/ examples/ test/ setup.py
old-wheel:
pip install --upgrade --user pip
python setup.py bdist_wheel
# Look for dist/*.whl
wheel:
which pip
${PIP} --no-deps .
ls -larth ${WHEELHOUSE}
tar:
rm -f FALCON.tar.gz
tar cvzf FALCON.tar.gz -C ${PYTHONUSERBASE} .
# Much smaller than the wheel, and includes all necessary dependencies,
# but also includes anything already in the user-site.
clean:
\rm -f *.xml
.PHONY: install test install-no-edit wheel tar clean