python3Packages.xgboost: fix the build on Darwin (#65703)

This commit is contained in:
Wael Nasreddine 2019-07-31 18:29:11 -07:00 committed by GitHub
parent ba4e5a3f64
commit fb2e964012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@
, nose
, scipy
, scikitlearn
, stdenv
, xgboost
, substituteAll
, pandas
@ -19,6 +20,7 @@ buildPythonPackage rec {
(substituteAll {
src = ./lib-path-for-python.patch;
libpath = "${xgboost}/lib";
extention = stdenv.hostPlatform.extensions.sharedLibrary;
})
];

View file

@ -35,4 +35,4 @@ index d87922c0..859a30fb 100644
- 'did you install compilers and run build.sh in root path?\n'
- 'List of candidates:\n' + ('\n'.join(dll_path)))
- return lib_path
+ return ["@libpath@/libxgboost.so"]
+ return ["@libpath@/libxgboost@extention@"]