Skip to content

Commit

Permalink
adressing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vnherdeiro committed Sep 15, 2024
1 parent 8f0af7a commit 7fcef2e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions build-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,13 @@ if test "${INSTALL}" = true; then
# use regular-old setuptools for these builds, to avoid
# trying to recompile the shared library
sed -i.bak -e '/start:build-system/,/end:build-system/d' pyproject.toml
{
echo '[build-system]'; \
echo 'requires = ["setuptools"]'; \
echo 'build-backend = "setuptools.build_meta"'; \
echo ""; \
} >> ./pyproject.toml
{
echo "recursive-include lightgbm *.dll *.dylib *.so"; \
echo ""; \
} >> ./MANIFEST.in
# shellcheck disable=SC2129
echo '[build-system]' >> ./pyproject.toml
echo 'requires = ["setuptools"]' >> ./pyproject.toml
echo 'build-backend = "setuptools.build_meta"' >> ./pyproject.toml
echo "" >> ./pyproject.toml
echo "recursive-include lightgbm *.dll *.dylib *.so" > ./MANIFEST.in
echo "" >> ./MANIFEST.in
mkdir -p ./lightgbm/lib
if test -f ../lib_lightgbm.so; then
echo "found pre-compiled lib_lightgbm.so"
Expand Down

0 comments on commit 7fcef2e

Please sign in to comment.