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