File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,21 @@ darwin* | linux*)
80
80
;;
81
81
esac
82
82
83
- # Create a VERSION_CURRENT file in the build directory to include in the dist tarball.
84
- PATH=" ${UV_INSTALL_DIR:? } :${PATH:- } " uv run --frozen python ./etc/calc_release_version.py > ./build/VERSION_CURRENT
83
+ mkdir -p build
84
+
85
+ (
86
+ # calc_release_version.py is a standalone script.
87
+ uv_flags=(--no-project)
88
+
89
+ # Avoid "error: unknown option `format=...'" with CPython 3.11.
90
+ if [[ " ${distro_id:? } " == rhel7* ]]; then
91
+ uv_flags+=(-p 3.12)
92
+ fi
93
+
94
+ # Create a VERSION_CURRENT file in the build directory to include in the dist tarball.
95
+ PATH=" ${UV_INSTALL_DIR:? } :${PATH:- } " uv run " ${uv_flags[@]:? } " python ./etc/calc_release_version.py > ./build/VERSION_CURRENT
96
+ )
97
+
85
98
cd build
86
99
87
100
cmake_flags=(
You can’t perform that action at this time.
0 commit comments