summaryrefslogtreecommitdiff
path: root/misc/py-xgboost/files/patch-xgboost_libpath.py
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2020-05-25 19:23:03 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2020-05-25 19:23:03 +0000
commita92fbb43a07a3b0764c870a614ee7efa86210ff1 (patch)
treeb3ab58d23c4f64e942c645bc38f58e66ca2f0f0b /misc/py-xgboost/files/patch-xgboost_libpath.py
parentmisc/xgboost: Update 1.0.2 -> 1.1.0 (diff)
misc/py-xgboost: Update 1.0.2 -> 1.1.0
Reported by: portscout
Notes
Notes: svn path=/head/; revision=536525
Diffstat (limited to 'misc/py-xgboost/files/patch-xgboost_libpath.py')
-rw-r--r--misc/py-xgboost/files/patch-xgboost_libpath.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/misc/py-xgboost/files/patch-xgboost_libpath.py b/misc/py-xgboost/files/patch-xgboost_libpath.py
index 1382491c8a1d..d748c5a1ddbd 100644
--- a/misc/py-xgboost/files/patch-xgboost_libpath.py
+++ b/misc/py-xgboost/files/patch-xgboost_libpath.py
@@ -1,11 +1,11 @@
---- xgboost/libpath.py.orig 2019-12-14 21:46:06 UTC
+--- xgboost/libpath.py.orig 2020-05-25 18:09:22 UTC
+++ xgboost/libpath.py
-@@ -20,7 +20,7 @@ def find_lib_path():
+@@ -20,6 +20,8 @@ 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':
+ 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.