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

In standalone Python extension, actually use the CMake build #441

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sdrobert
Copy link

Hello,

Thanks Ken for the great library!

I noticed that #417 didn't delete the old Extension source (FILES), which was causing the code to be compiled via the normal build_ext routine after CMake compiled its own extension. I believe CMake's standalone library was put into site-packages as libkenlm.so but never used. You can verify yourself by watching the output of

pip install -vv .

This PR removes the old Extension source and makes sure the CMake library is loaded and named correctly. I've tested it on GCC and MSVC but not OSX. I'd appreciate someone else giving this PR a run before merging.

Thank you!
Sean

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

Successfully merging this pull request may close these issues.

1 participant