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 , nose
, scipy , scipy
, scikitlearn , scikitlearn
, stdenv
, xgboost , xgboost
, substituteAll , substituteAll
, pandas , pandas
@ -19,6 +20,7 @@ buildPythonPackage rec {
(substituteAll { (substituteAll {
src = ./lib-path-for-python.patch; src = ./lib-path-for-python.patch;
libpath = "${xgboost}/lib"; 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' - 'did you install compilers and run build.sh in root path?\n'
- 'List of candidates:\n' + ('\n'.join(dll_path))) - 'List of candidates:\n' + ('\n'.join(dll_path)))
- return lib_path - return lib_path
+ return ["@libpath@/libxgboost.so"] + return ["@libpath@/libxgboost@extention@"]