opnsense-ports/misc/py-xgboost/files/patch-xgboost_libpath.py
Franco Fichtner 5413c08ad3 */*: sync with upstream
Taken from: HardenedBSD
2020-05-26 02:23:26 +02:00

11 lines
484 B
Python

--- xgboost/libpath.py.orig 2020-05-25 18:09:22 UTC
+++ xgboost/libpath.py
@@ -20,6 +20,8 @@ def find_lib_path():
"""
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
dll_path = [
+ os.getenv('FREEBSD_LIBRARY_PATH'),
+ os.path.join(sys.prefix, 'xgboost'),
# normal, after installation `lib` is copied into Python package tree.
os.path.join(curr_path, 'lib'),
# editable installation, no copying is performed.