From 20c0e71cf64a0a7bf8fc7d03ab76b6a248059dbd Mon Sep 17 00:00:00 2001 From: synodriver <624805065@qq.com> Date: Fri, 12 Aug 2022 13:16:48 +0000 Subject: [PATCH] add download flag --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5093dd9..7ec0f4e 100644 --- a/setup.py +++ b/setup.py @@ -191,11 +191,13 @@ def update_to(self, b=1, bsize=1, tsize=None): ) as t: # all optional kwargs urlretrieve(_DICT_URL, filename, reporthook=t.update_to) t.total = t.n + print("Download complete") + print("Extracting tar file {}".format(filename)) with tarfile.open(filename, mode="r|gz") as f: f.extractall(path="./") os.remove(filename) - +print("Extract complete") # generate config.h for mecab # NOTE: need to run cmake to generate config.h