File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,13 @@ tar -C local/scipy_openblas64 --strip-components=2 -xf libs/openblas*.tar.gz
22
22
# do not package the static libs and symlinks, only take the shared object
23
23
find local/scipy_openblas64/lib -maxdepth 1 -type l -delete
24
24
rm local/scipy_openblas64/lib/* .a
25
- # Check that the pyproject.toml and the pkgconfig versions agree
25
+ # Check that the pyproject.toml and the pkgconfig versions agree.
26
26
py_version=$( grep " ^version" pyproject.toml | sed -e " s/version = \" //" )
27
- pkg_version=$( grep " version=" ./local/scipy_openblas64/lib/pkgconfig/openblas64.pc | sed -e " s/version=//" )
27
+ pkg_version=$( grep " version=" ./local/scipy_openblas64/lib/pkgconfig/scipy-openblas* .pc | sed -e " s/version=//" )
28
+ if [[ -z " $pkg_version " ]]; then
29
+ echo Could not read version from pkgconfig file
30
+ exit 1
31
+ fi
28
32
if [[ $py_version != $pkg_version * ]]; then
29
33
echo Version from pyproject.toml " $py_version " does not match version from build " pkg_version"
30
34
exit 1
You can’t perform that action at this time.
0 commit comments