--- ./build-python.sh.origin	2025-02-10 16:06:33.700626229 -0600
+++ ./build-python.sh	2025-02-10 16:07:02.306267234 -0600
@@ -59,129 +59,129 @@
 #     --user
 #                                   Install into user-specific instead of global site-packages directory.
 #                                   Only used with 'install' command.
-
-set -e -E -u
-
-echo "building lightgbm"
-
-# Default values of arguments
-INSTALL="false"
-BUILD_SDIST="false"
-BUILD_WHEEL="false"
-
-PIP_INSTALL_ARGS=""
-BUILD_ARGS=""
-PRECOMPILE="false"
-
-while [ $# -gt 0 ]; do
-  case "$1" in
-    ############################
-    # sub-commands of setup.py #
-    ############################
-    install)
-      INSTALL="true"
-      ;;
-    sdist)
-      BUILD_SDIST="true"
-      ;;
-    bdist_wheel)
-      BUILD_WHEEL="true"
-      ;;
-    ############################
-    # customized library paths #
-    ############################
-    --boost-dir|--boost-dir=*)
-        if [[ "$1" != *=* ]];
-            then shift;
-        fi
-        BOOST_DIR="${1#*=}"
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.Boost_DIR='${BOOST_DIR}'"
-        ;;
-    --boost-include-dir|--boost-include-dir=*)
-        if [[ "$1" != *=* ]];
-            then shift;
-        fi
-        BOOST_INCLUDE_DIR="${1#*=}"
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.Boost_INCLUDE_DIR='${BOOST_INCLUDE_DIR}'"
-        ;;
-    --boost-librarydir|--boost-librarydir=*)
-        if [[ "$1" != *=* ]];
-            then shift;
-        fi
-        BOOST_LIBRARY_DIR="${1#*=}"
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.BOOST_LIBRARYDIR='${BOOST_LIBRARY_DIR}'"
-        ;;
-    --boost-root|--boost-root=*)
-        if [[ "$1" != *=* ]];
-            then shift;
-        fi
-        BOOST_ROOT="${1#*=}"
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.Boost_ROOT='${BOOST_ROOT}'"
-        ;;
-    --opencl-include-dir|--opencl-include-dir=*)
-        if [[ "$1" != *=* ]];
-            then shift;
-        fi
-        OPENCL_INCLUDE_DIR="${1#*=}"
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.OpenCL_INCLUDE_DIR='${OPENCL_INCLUDE_DIR}'"
-        ;;
-    --opencl-library|--opencl-library=*)
-        if [[ "$1" != *=* ]];
-            then shift;
-        fi
-        OPENCL_LIBRARY="${1#*=}"
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.OpenCL_LIBRARY='${OPENCL_LIBRARY}'"
-        ;;
-    #########
-    # flags #
-    #########
-    --bit32)
-        export CMAKE_GENERATOR="Visual Studio 17 2022"
-        export CMAKE_GENERATOR_PLATFORM="Win32"
-        echo "[INFO] Attempting to build 32-bit version of LightGBM, which is only supported on Windows with generator '${CMAKE_GENERATOR}'."
-        ;;
-    --cuda)
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_CUDA=ON"
-        ;;
-    --gpu)
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_GPU=ON"
-        ;;
-    --integrated-opencl)
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.__INTEGRATE_OPENCL=ON"
-        ;;
-    --mingw)
-        export CMAKE_GENERATOR='MinGW Makefiles'
-        # ref: https://stackoverflow.com/a/45104058/3986677
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.CMAKE_SH=CMAKE_SH-NOTFOUND"
-        ;;
-    --mpi)
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_MPI=ON"
-        ;;
-    --no-isolation)
-        BUILD_ARGS="${BUILD_ARGS} --no-isolation"
-        PIP_INSTALL_ARGS="${PIP_INSTALL_ARGS} --no-build-isolation"
-        ;;
-    --nomp)
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_OPENMP=OFF"
-        ;;
-    --precompile)
-        PRECOMPILE="true"
-        ;;
-    --time-costs)
-        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_TIMETAG=ON"
-        ;;
-    --user)
-        PIP_INSTALL_ARGS="${PIP_INSTALL_ARGS} --user"
-        ;;
-    *)
-        echo "invalid argument '${1}'"
-        exit 1
-        ;;
-  esac
-  shift
-done
-
-pip install --prefer-binary 'build>=0.10.0'
+#
+#set -e -E -u
+#
+#echo "building lightgbm"
+#
+## Default values of arguments
+#INSTALL="false"
+#BUILD_SDIST="false"
+#BUILD_WHEEL="false"
+#
+#PIP_INSTALL_ARGS=""
+#BUILD_ARGS=""
+#PRECOMPILE="false"
+#
+#while [ $# -gt 0 ]; do
+#  case "$1" in
+#    ############################
+#    # sub-commands of setup.py #
+#    ############################
+#    install)
+#      INSTALL="true"
+#      ;;
+#    sdist)
+#      BUILD_SDIST="true"
+#      ;;
+#    bdist_wheel)
+#      BUILD_WHEEL="true"
+#      ;;
+#    ############################
+#    # customized library paths #
+#    ############################
+#    --boost-dir|--boost-dir=*)
+#        if [[ "$1" != *=* ]];
+#            then shift;
+#        fi
+#        BOOST_DIR="${1#*=}"
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.Boost_DIR='${BOOST_DIR}'"
+#        ;;
+#    --boost-include-dir|--boost-include-dir=*)
+#        if [[ "$1" != *=* ]];
+#            then shift;
+#        fi
+#        BOOST_INCLUDE_DIR="${1#*=}"
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.Boost_INCLUDE_DIR='${BOOST_INCLUDE_DIR}'"
+#        ;;
+#    --boost-librarydir|--boost-librarydir=*)
+#        if [[ "$1" != *=* ]];
+#            then shift;
+#        fi
+#        BOOST_LIBRARY_DIR="${1#*=}"
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.BOOST_LIBRARYDIR='${BOOST_LIBRARY_DIR}'"
+#        ;;
+#    --boost-root|--boost-root=*)
+#        if [[ "$1" != *=* ]];
+#            then shift;
+#        fi
+#        BOOST_ROOT="${1#*=}"
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.Boost_ROOT='${BOOST_ROOT}'"
+#        ;;
+#    --opencl-include-dir|--opencl-include-dir=*)
+#        if [[ "$1" != *=* ]];
+#            then shift;
+#        fi
+#        OPENCL_INCLUDE_DIR="${1#*=}"
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.OpenCL_INCLUDE_DIR='${OPENCL_INCLUDE_DIR}'"
+#        ;;
+#    --opencl-library|--opencl-library=*)
+#        if [[ "$1" != *=* ]];
+#            then shift;
+#        fi
+#        OPENCL_LIBRARY="${1#*=}"
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.OpenCL_LIBRARY='${OPENCL_LIBRARY}'"
+#        ;;
+#    #########
+#    # flags #
+#    #########
+#    --bit32)
+#        export CMAKE_GENERATOR="Visual Studio 17 2022"
+#        export CMAKE_GENERATOR_PLATFORM="Win32"
+#        echo "[INFO] Attempting to build 32-bit version of LightGBM, which is only supported on Windows with generator '${CMAKE_GENERATOR}'."
+#        ;;
+#    --cuda)
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_CUDA=ON"
+#        ;;
+#    --gpu)
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_GPU=ON"
+#        ;;
+#    --integrated-opencl)
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.__INTEGRATE_OPENCL=ON"
+#        ;;
+#    --mingw)
+#        export CMAKE_GENERATOR='MinGW Makefiles'
+#        # ref: https://stackoverflow.com/a/45104058/3986677
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.CMAKE_SH=CMAKE_SH-NOTFOUND"
+#        ;;
+#    --mpi)
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_MPI=ON"
+#        ;;
+#    --no-isolation)
+#        BUILD_ARGS="${BUILD_ARGS} --no-isolation"
+#        PIP_INSTALL_ARGS="${PIP_INSTALL_ARGS} --no-build-isolation"
+#        ;;
+#    --nomp)
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_OPENMP=OFF"
+#        ;;
+#    --precompile)
+#        PRECOMPILE="true"
+#        ;;
+#    --time-costs)
+#        BUILD_ARGS="${BUILD_ARGS} --config-setting=cmake.define.USE_TIMETAG=ON"
+#        ;;
+#    --user)
+#        PIP_INSTALL_ARGS="${PIP_INSTALL_ARGS} --user"
+#        ;;
+#    *)
+#        echo "invalid argument '${1}'"
+#        exit 1
+#        ;;
+#  esac
+#  shift
+#done
+#
+##pip install --prefer-binary 'build>=0.10.0'
 
 # create a new directory that just contains the files needed
 # to build the Python package
@@ -280,95 +280,95 @@
     ###################
     # compute (Boost) #
     ###################
-    mkdir -p ./lightgbm-python/external_libs/compute
-    cp \
-        -R \
-        external_libs/compute/include \
-        ./lightgbm-python/external_libs/compute/include/
+#    mkdir -p ./lightgbm-python/external_libs/compute
+#    cp \
+#        -R \
+#        external_libs/compute/include \
+#        ./lightgbm-python/external_libs/compute/include/
 }
 
 create_isolated_source_dir
 
-cd ./lightgbm-python
-
-# installation involves building the wheel + `pip install`-ing it
-if test "${INSTALL}" = true; then
-    if test "${PRECOMPILE}" = true; then
-        BUILD_SDIST=true
-        BUILD_WHEEL=false
-        BUILD_ARGS=""
-        rm -rf \
-            ./cmake \
-            ./CMakeLists.txt \
-            ./external_libs \
-            ./include \
-            ./src \
-            ./swig \
-            ./windows
-        # 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]' >> ./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"
-            cp ../lib_lightgbm.so ./lightgbm/lib/lib_lightgbm.so
-        elif test -f ../lib_lightgbm.dylib; then
-            echo "found pre-compiled lib_lightgbm.dylib"
-            cp ../lib_lightgbm.dylib ./lightgbm/lib/lib_lightgbm.dylib
-        elif test -f ../Release/lib_lightgbm.dll; then
-            echo "found pre-compiled Release/lib_lightgbm.dll"
-            cp ../Release/lib_lightgbm.dll ./lightgbm/lib/lib_lightgbm.dll
-        elif test -f ../windows/x64/DLL/lib_lightgbm.dll; then
-            echo "found pre-compiled windows/x64/DLL/lib_lightgbm.dll"
-            cp ../windows/x64/DLL/lib_lightgbm.dll ./lightgbm/lib/lib_lightgbm.dll
-            cp ../windows/x64/DLL/lib_lightgbm.lib ./lightgbm/lib/lib_lightgbm.lib
-        fi
-        rm -f ./*.bak
-    else
-        BUILD_SDIST="false"
-        BUILD_WHEEL="true"
-    fi
-fi
-
-if test "${BUILD_SDIST}" = true; then
-    echo "--- building sdist ---"
-    rm -f ../dist/*.tar.gz
-    python -m build \
-        --sdist \
-        --outdir ../dist \
-        ${BUILD_ARGS} \
-        .
-fi
-
-if test "${BUILD_WHEEL}" = true; then
-    echo "--- building wheel ---"
-    rm -f ../dist/*.whl || true
-    python -m build \
-        --wheel \
-        --outdir ../dist \
-        ${BUILD_ARGS} \
-        .
-fi
-
-if test "${INSTALL}" = true; then
-    echo "--- installing lightgbm ---"
-    cd ../dist
-    # ref for use of '--find-links': https://stackoverflow.com/a/52481267/3986677
-    pip install \
-        ${PIP_INSTALL_ARGS} \
-        --ignore-installed \
-        --no-cache-dir \
-        --no-deps \
-        --find-links=. \
-        lightgbm
-    cd ../
-fi
-
-echo "cleaning up"
-rm -rf ./lightgbm-python
+#cd ./lightgbm-python
+#
+## installation involves building the wheel + `pip install`-ing it
+#if test "${INSTALL}" = true; then
+#    if test "${PRECOMPILE}" = true; then
+#        BUILD_SDIST=true
+#        BUILD_WHEEL=false
+#        BUILD_ARGS=""
+#        rm -rf \
+#            ./cmake \
+#            ./CMakeLists.txt \
+#            ./external_libs \
+#            ./include \
+#            ./src \
+#            ./swig \
+#            ./windows
+#        # 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]' >> ./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"
+#            cp ../lib_lightgbm.so ./lightgbm/lib/lib_lightgbm.so
+#        elif test -f ../lib_lightgbm.dylib; then
+#            echo "found pre-compiled lib_lightgbm.dylib"
+#            cp ../lib_lightgbm.dylib ./lightgbm/lib/lib_lightgbm.dylib
+#        elif test -f ../Release/lib_lightgbm.dll; then
+#            echo "found pre-compiled Release/lib_lightgbm.dll"
+#            cp ../Release/lib_lightgbm.dll ./lightgbm/lib/lib_lightgbm.dll
+#        elif test -f ../windows/x64/DLL/lib_lightgbm.dll; then
+#            echo "found pre-compiled windows/x64/DLL/lib_lightgbm.dll"
+#            cp ../windows/x64/DLL/lib_lightgbm.dll ./lightgbm/lib/lib_lightgbm.dll
+#            cp ../windows/x64/DLL/lib_lightgbm.lib ./lightgbm/lib/lib_lightgbm.lib
+#        fi
+#        rm -f ./*.bak
+#    else
+#        BUILD_SDIST="false"
+#        BUILD_WHEEL="true"
+#    fi
+#fi
+#
+#if test "${BUILD_SDIST}" = true; then
+#    echo "--- building sdist ---"
+#    rm -f ../dist/*.tar.gz
+#    python -m build \
+#        --sdist \
+#        --outdir ../dist \
+#        ${BUILD_ARGS} \
+#        .
+#fi
+#
+#BUILD_WHEEL=FALSE
+#if test "${BUILD_WHEEL}" = true; then
+#    echo "--- building wheel ---"
+#    rm -f ../dist/*.whl || true
+#    python -m build \
+#        --wheel \
+#        --outdir ../dist \
+#        ${BUILD_ARGS} \
+#        .
+#fi
+#
+#if test "${INSTALL}" = true; then
+#    echo "--- installing lightgbm ---"
+#    # ref for use of '--find-links': https://stackoverflow.com/a/52481267/3986677
+#    cd ../dist
+#    python -m pip install .\
+#        ${PIP_INSTALL_ARGS} \
+#        --no-cache-dir \
+#         --find-links=. \
+#        --root ${RPM_BUILD_ROOT}
+#        -v
+#    cd ../
+#fi
+#
+#echo "cleaning up"
+#rm -rf ./lightgbm-python
