r9y9/pyopenjtalk

Don't include mecab/config.h for release tar balls

r9y9 opened this issue · 0 comments

r9y9 commented

Otherwise, config.h won't be generated based on the user's environment.

Ref:

pyopenjtalk/setup.py

Lines 145 to 152 in 86c8bec

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)