Skip to content

Commit 01b3d6d

Browse files
committed
try to debug travis
Co-authored by: nijincheng@iscas.ac.cn;
1 parent fbb83f3 commit 01b3d6d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

tools/build_prepare.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ if [ "${INTERFACE64}" != "1" ]; then
6767
fi
6868

6969
rm -rf dist/*
70+
71+
72+
echo "The build preparation is done."

tools/build_wheel.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /bin/bash
12
# Needs:
23
# $INTERFACE64 ("1" or "0")
34
# $PLAT (x86_64, i686, arm64, aarch64, s390x, ppc64le)
@@ -14,7 +15,11 @@ source tools/build_prepare.sh
1415

1516
$PYTHON -m pip wheel -w dist -v .
1617

18+
echo "Repairing wheel with auditwheel"
1719
auditwheel repair -w dist --lib-sdir /lib dist/*.whl
20+
echo "Wheel repaired."
21+
22+
ls -l dist/
1823

1924
# Add an RPATH to libgfortran:
2025
# https://github.com/pypa/auditwheel/issues/451
@@ -27,6 +32,12 @@ unzip dist/*.whl "*libgfortran*"
2732
patchelf --force-rpath --set-rpath '$ORIGIN' */lib/libgfortran*
2833
zip dist/*.whl */lib/libgfortran*
2934

35+
echo "Final wheel contents:"
36+
37+
ls -l dist/
38+
39+
echo "Testing the wheel"
40+
3041
# Test that the wheel works with a different python
3142
PYTHON=python3.11
3243

@@ -36,4 +47,6 @@ if [ "${INTERFACE64}" != "1" ]; then
3647
else
3748
$PYTHON -m pip install --no-index --find-links dist scipy_openblas64
3849
$PYTHON -m scipy_openblas64
39-
fi
50+
fi
51+
52+
echo "Wheel test successful."

0 commit comments

Comments
 (0)