Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit c054fce

Browse files
committed
Use setup.py develop
1 parent 6124468 commit c054fce

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/test.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
set -e
99

1010
# build dictionaries
11-
python -m sudachipy.command_line build -o tests/resources/system.dic -d "the system dictionary for the unit tests" -m tests/resources/dict/matrix.def tests/resources/dict/lex.csv
12-
python -m sudachipy.command_line ubuild -o tests/resources/user.dic -s tests/resources/system.dic tests/resources/dict/user.csv
11+
if !(type sudachipy > /dev/null 2>&1); then
12+
python setup.py develop
13+
fi
14+
sudachipy build -o tests/resources/system.dic -d "the system dictionary for the unit tests" -m tests/resources/dict/matrix.def tests/resources/dict/lex.csv
15+
sudachipy ubuild -o tests/resources/user.dic -s tests/resources/system.dic tests/resources/dict/user.csv
1316

1417
set +e
1518

@@ -21,4 +24,4 @@ if [[ $RES_TAIL != "OK" ]]; then
2124
>&2 echo "$RES"
2225
fi
2326

24-
exit $STATUS
27+
exit $STATUS

0 commit comments

Comments
 (0)