Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise errors if cmake fails to run #20

Closed
r9y9 opened this issue Sep 14, 2021 · 0 comments
Closed

Raise errors if cmake fails to run #20

r9y9 opened this issue Sep 14, 2021 · 0 comments

Comments

@r9y9
Copy link
Owner

r9y9 commented Sep 14, 2021

pyopenjtalk/setup.py

Lines 141 to 151 in 83bf05c

# generate config.h for mecab
# NOTE: need to run cmake to generate config.h
# we could do it on python side but it would be very tricky,
# so far let's use cmake tool
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)
run(["cmake", ".."])
os.chdir(cwd)

@r9y9 r9y9 closed this as completed in bd3a581 Sep 14, 2021
tsukumijima pushed a commit to tsukumijima/pyopenjtalk-plus that referenced this issue Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant