Skip to content

Commit 855803b

Browse files
committed
fix test
1 parent 4f7748a commit 855803b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/build_wheel.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ tar -C local/scipy_openblas64 --strip-components=2 -xf libs/openblas*.tar.gz
2222
# do not package the static libs and symlinks, only take the shared object
2323
find local/scipy_openblas64/lib -maxdepth 1 -type l -delete
2424
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.
2626
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
2832
if [[ $py_version != $pkg_version* ]]; then
2933
echo Version from pyproject.toml "$py_version" does not match version from build "pkg_version"
3034
exit 1

0 commit comments

Comments
 (0)