Skip to content

Commit

Permalink
Debugging again
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Mar 1, 2024
1 parent 7b08e70 commit 097f7e8
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions dakota_manylinux_install_files/build_wheels_gha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,44 @@ if [ -z "$1" ]; then
exit 1
fi

CAROLINA_REPO=$(pwd)

DIST_BUILD=/github/workspace/dist_build
INSTALL_DIR=$DIST_BUILD

cd /tmp

python_exec=$(which python$1)
$python_exec -m venv myvenv
source ./myvenv/bin/activate

ls -lah $DIST_BUILD

echo "----------------------------------------------------------------"
pip install pytest numpy
NUMPY_INCLUDE_PATH=$(find /tmp -type d -path "*site-packages/numpy/core/include")
numpy_lib_dir=$(find /tmp/myvenv/ -name numpy.libs)

yum install lapack-devel -y

export PATH="$PATH:$INSTALL_DIR/bin"
export LD_LIBRARY_PATH="/usr/lib:/usr/lib64:$INSTALL_DIR/lib:$INSTALL_DIR/bin:$numpy_lib_dir:$NUMPY_INCLUDE_PATH"

cd $CAROLINA_REPO
pip install .

echo "Pip list ...... "
pip list | grep carolina

pip install pytest numpy
pytest tests

mkdir /github/workspace/carolina_dist

pip wheel . -w wheelhouse
auditwheel repair wheelhouse/* -w /github/workspace/carolina_dist

mkdir /tmp/wheels
auditwheel repair wheelhouse/* -w /tmp/wheels

cp /tmp/wheels/carolina*whl /github/workspace/carolina_dist
ls -lah /github/workspace/carolina_dist

echo "Copied distributables and installation trace"

0 comments on commit 097f7e8

Please sign in to comment.