-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 1.01 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
SHELL := /bin/bash
all: install
T=time
install:
make clear
python3 setup.py bdist_wheel ; pip install dist/online_text_flow-*-py3-none-any.whl
installcheck:
make clear
python3 setup.py bdist_wheel ; pip install dist/online_text_flow-*-py3-none-any.whl
make check
# the very first run after installation might be slower than the following, don't count it. Optimal is when the two options take the same time, around 300ms
check:
$T echo 100 101 events. | online-text-flow events de
$T echo 100 101 events. | python3 elitr/onlinetextflow/events.py de
$T echo 100 101 events. | online-text-flow events de
$T echo 100 101 events. | python3 elitr/onlinetextflow/events.py de
# for comparison only
editable:
make clear
pip install --editable .
make check
# for comparison only
develop:
make clear
python3 setup.py develop
make check
clear:
rm -rf elitr/onlinetextflow/__pycache__ elitr/__pycache__ elitr/onlinetextflow/server/__pycache__ build/ dist/ online_text_flow.egg-info/
pip uninstall online-text-flow -y