Merge pull request #233958 from natsukium/python3Packages.lightgbm/fix

python3Packages.lightgbm: fix build on darwin
This commit is contained in:
Weijia Wang
2023-05-25 15:00:43 +03:00
committed by GitHub
@@ -12,7 +12,7 @@
, ocl-icd
, opencl-headers
, boost
, gpuSupport ? true
, gpuSupport ? stdenv.isLinux
}:
buildPythonPackage rec {
@@ -48,7 +48,11 @@ buildPythonPackage rec {
];
buildPhase = ''
runHook preBuild
${python.pythonForBuild.interpreter} setup.py bdist_wheel ${lib.optionalString gpuSupport "--gpu"}
runHook postBuild
'';
postConfigure = ''