diff --git a/ci/build_python.sh b/ci/build_python.sh index 74b14abed..52bee7c9e 100755 --- a/ci/build_python.sh +++ b/ci/build_python.sh @@ -19,6 +19,7 @@ version_cpp=${version%a*} commit=$(git rev-parse HEAD) echo "${version}" > VERSION +echo "${version_cpp}" > "${package_dir}/VERSION" echo "${version_cpp}" > VERSION_CPP sed -i "/^__git_commit__/ s/= .*/= \"${commit}\"/g" "${package_dir}/${package_name}/_version.py" diff --git a/ci/build_wheel.sh b/ci/build_wheel.sh index d172b680e..88d38b38a 100755 --- a/ci/build_wheel.sh +++ b/ci/build_wheel.sh @@ -28,6 +28,7 @@ PACKAGE_CUDA_SUFFIX="-${RAPIDS_PY_CUDA_SUFFIX}" sed -i "s/name = \"${package_name}\"/name = \"${package_name}${PACKAGE_CUDA_SUFFIX}\"/g" ${pyproject_file} echo "${version}" > VERSION echo "${version_cpp}" > VERSION_CPP +echo "${version_cpp}" > "${package_dir}/VERSION" sed -i "/^__git_commit__/ s/= .*/= \"${commit}\"/g" "${package_src_dir}/_version.py" if [[ ${PACKAGE_CUDA_SUFFIX} == "-cu12" ]]; then