aboutsummaryrefslogtreecommitdiff
path: root/misc/py-xgboost/files/patch-xgboost_libpath.py
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2019-12-14 22:12:32 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2019-12-14 22:12:32 +0000
commit65f46a60aa05ef3738ab89798fe51ec22f1da2c6 (patch)
treedf078943f3c1eabfa00f498b0d7762324a00b347 /misc/py-xgboost/files/patch-xgboost_libpath.py
parentb216b1980c666d50246495d9a04f0f1666270cd0 (diff)
Notes
Diffstat (limited to 'misc/py-xgboost/files/patch-xgboost_libpath.py')
-rw-r--r--misc/py-xgboost/files/patch-xgboost_libpath.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/py-xgboost/files/patch-xgboost_libpath.py b/misc/py-xgboost/files/patch-xgboost_libpath.py
new file mode 100644
index 000000000000..1382491c8a1d
--- /dev/null
+++ b/misc/py-xgboost/files/patch-xgboost_libpath.py
@@ -0,0 +1,11 @@
+--- xgboost/libpath.py.orig 2019-12-14 21:46:06 UTC
++++ xgboost/libpath.py
+@@ -20,7 +20,7 @@ def find_lib_path():
+ """
+ curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
+ # make pythonpack hack: copy this directory one level upper for setup.py
+- dll_path = [curr_path, os.path.join(curr_path, '../../lib/'),
++ dll_path = [os.getenv('FREEBSD_LIBRARY_PATH'),
+ os.path.join(curr_path, './lib/'),
+ os.path.join(sys.prefix, 'xgboost')]
+ if sys.platform == 'win32':