Otherwise, config.h won't be generated based on the user's environment.
Ref:
|
if not exists(join(src_top, "mecab", "src", "config.h")): |
|
cwd = os.getcwd() |
|
build_dir = join(src_top, "build") |
|
os.makedirs(build_dir, exist_ok=True) |
|
os.chdir(build_dir) |
|
r = run(["cmake", ".."]) |
|
r.check_returncode() |
|
os.chdir(cwd) |