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

Commit

Permalink
Use setup.py develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuma-t committed Sep 25, 2021
1 parent 6124468 commit c054fce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
set -e

# build dictionaries
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
python -m sudachipy.command_line ubuild -o tests/resources/user.dic -s tests/resources/system.dic tests/resources/dict/user.csv
if !(type sudachipy > /dev/null 2>&1); then
python setup.py develop
fi
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
sudachipy ubuild -o tests/resources/user.dic -s tests/resources/system.dic tests/resources/dict/user.csv

set +e

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

exit $STATUS
exit $STATUS

0 comments on commit c054fce

Please sign in to comment.