-
Notifications
You must be signed in to change notification settings - Fork 5
Update openfst to 1.8.5 #22
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,14 +22,12 @@ if(APPLE) | |
| if(PYTHON_SITE_PACKAGE_DIR STREQUAL "") | ||
| message(WARNING "PYTHON_SITE_PACKAGE_DIR is empty!") | ||
| else() | ||
| target_link_libraries(_kaldi_decoder PRIVATE "-Wl,-rpath,${PYTHON_SITE_PACKAGE_DIR}") | ||
| target_link_libraries(_kaldi_decoder PRIVATE "-Wl,-rpath,${PYTHON_SITE_PACKAGE_DIR}/kaldi_decoder/lib") | ||
| endif() | ||
| endif() | ||
|
|
||
| if(NOT WIN32) | ||
| target_link_libraries(_kaldi_decoder PRIVATE "-Wl,-rpath,${KALDI_DECODER_RPATH_ORIGIN}/kaldi_decoder/lib") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rpath construction appears to be incorrect. Since the library |
||
| endif() | ||
|
|
||
| install(TARGETS _kaldi_decoder | ||
| DESTINATION ../ | ||
| ) | ||
| install(TARGETS _kaldi_decoder DESTINATION lib) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| from _kaldi_decoder import ( | ||
| from kaldi_decoder.lib._kaldi_decoder import ( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| DecodableCtc, | ||
| DecodableInterface, | ||
| FasterDecoder, | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -30,7 +30,7 @@ def get_package_version(): | |||||
| return latest_version | ||||||
|
|
||||||
|
|
||||||
| package_name = "kaldi-decoder" | ||||||
| package_name = "kaldi_decoder" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changing the distribution name from
Suggested change
|
||||||
|
|
||||||
| with open("kaldi-decoder/python/kaldi_decoder/__init__.py", "a") as f: | ||||||
| f.write(f"__version__ = '{get_package_version()}'\n") | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The list of possible file locations contains a hardcoded absolute path that is specific to a local development environment. This should be removed to ensure the build remains portable and does not leak local system information.