python3Packages.xgboost: fix the build on Darwin (#65703)
This commit is contained in:
parent
ba4e5a3f64
commit
fb2e964012
|
@ -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;
|
||||
})
|
||||
];
|
||||
|
||||
|
|
|
@ -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@"]
|
||||
|
|
Loading…
Reference in New Issue