diff --git a/ci/scripts/python_build.ps1 b/ci/scripts/python_build.ps1 index dac97b3748..a57c07d366 100755 --- a/ci/scripts/python_build.ps1 +++ b/ci/scripts/python_build.ps1 @@ -21,5 +21,8 @@ $ErrorActionPreference = "Stop" $SourceDir = $Args[0] $BuildDir = $Args[1] -cmake -S "$($SourceDir)\c" -B $BuildDir -DADBC_BUILD_PYTHON=ON +$BuildAll = $env:BUILD_ALL -ne "0" +$BuildDriverManager = ($BuildAll -and (-not ($env:BUILD_DRIVER_MANAGER -eq "0"))) -or ($env:BUILD_DRIVER_MANAGER -eq "1") + +cmake -S "$($SourceDir)\c" -B $BuildDir -DADBC_DRIVER_MANAGER=$BuildDriverManager -DADBC_BUILD_PYTHON=ON cmake --build build --target python diff --git a/ci/scripts/python_build.sh b/ci/scripts/python_build.sh index 605b3ffbdd..ce22c6f1d2 100755 --- a/ci/scripts/python_build.sh +++ b/ci/scripts/python_build.sh @@ -18,13 +18,16 @@ set -e +: ${BUILD_ALL:=1} +: ${BUILD_DRIVER_MANAGER:=${BUILD_ALL}} + main() { local -r source_dir="${1}" local -r build_dir="${2}" set -x - cmake -S "${source_dir}/c" -B ${build_dir} -DADBC_BUILD_PYTHON=ON + cmake -S "${source_dir}/c" -B ${build_dir} -DADBC_DRIVER_MANAGER=${BUILD_DRIVER_MANAGER} -DADBC_BUILD_PYTHON=ON cmake --build build --target python set +x