-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMakefile
35 lines (25 loc) · 1.03 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
# Makefile for CTC segmentation
# Ludwig Kürzinger, 2021
all:
cythonize -3 ctc_segmentation/ctc_segmentation_dyn.pyx
python setup.py sdist
clean:
rm ctc_segmentation/ctc_segmentation_dyn.c || echo "already clean?"
rm -rf build/ dist/ ctc_segmentation.egg-info/ || echo "already clean?"
upload:
twine upload dist/*
test:
cd tests; python -c "import test_ctc_segmentation as test; test.test_ctc_segmentation()"
cd tests; python -c "import test_ctc_segmentation as test; test.test_determine_utterance_segments()"
cd tests; python -c "import test_ctc_segmentation as test; test.test_prepare_text()"
cd tests; python -c "import test_ctc_segmentation as test; test.test_prepare_tokenized_text()"
cd tests; python -c "import test_ctc_segmentation as test; test.test_prepare_token_list()"
# To test the various installation methods:
github:
cd /; pip install git+https://github.com/lumaku/ctc-segmentation --user
pip:
cd /; pip install ctc-segmentation --user
local:
pip install . --user
rm:
cd /; pip uninstall -y ctc-segmentation