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

Enable configuration for custom libpath #543

Merged
merged 6 commits into from
Feb 14, 2024
Merged

Conversation

hcho3
Copy link
Collaborator

@hcho3 hcho3 commented Feb 1, 2024

Users can now provide a custom path for libtreelite.so when installing the Python package by using the option system_libtreelite_dir:

pip install -v . --config-settings use_system_libtreelite=True \
   --config-settings system_libtreelite_dir=/opt/treelite/lib

When system_libtreelite_dir is specified, the path_config.py file will be overwritten.

Note: To use system_libtreelite_dir option, users must also specify use_system_libtreelite=True.

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (4477280) 84.22% compared to head (248b2be) 83.25%.

❗ Current head 248b2be differs from pull request most recent head 0413581. Consider uploading reports for the commit 0413581 to get more accurate results

Files Patch % Lines
python/treelite/libpath.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           mainline     #543      +/-   ##
============================================
- Coverage     84.22%   83.25%   -0.97%     
============================================
  Files            70       71       +1     
  Lines          6066     5913     -153     
  Branches        510      510              
============================================
- Hits           5109     4923     -186     
- Misses          957      990      +33     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hcho3 hcho3 merged commit 1c09db6 into dmlc:mainline Feb 14, 2024
16 checks passed
@hcho3 hcho3 deleted the configure_path branch February 14, 2024 21:08
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.

None yet

1 participant