Skip to content
Snippets Groups Projects
Commit a59122a2 authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

setup of a py-env to use coyote and hiopy package on a generic environment

parent 3b9f76f8
No related branches found
No related tags found
No related merge requests found
Pipeline #94940 waiting for manual action
......@@ -56,3 +56,21 @@ echo "=== Building coyote ==="
CC="${CC}" CXX="${CXX}" FC="${FC}" cmake $ABSOLUTE_coyote_ROOT -DCMAKE_PREFIX_PATH=$COYOTE_SW_PREFIX -DCMAKE_BUILD_TYPE=Debug
cmake --build . -j $THREADS
popd
VENV_PATH=$BUILD_PATH/py_venv
python3.11 -m venv $VENV_PATH
source $VENV_PATH/bin/activate
pip install -r ${ABSOLUTE_coyote_ROOT}/requirements-dev.txt
cp $BUILD_PATH/python/coyote.cpython-311-darwin.so $VENV_PATH/lib/python3.11/site-packages/
export PYTHONPATH=${BUILD_PATH}/python:${ABSOLUTE_coyote_ROOT}/apps
echo $PYTHONPATH
if python -c "import coyote; from hiopy._data_handler import DataHandler" &> /dev/null ; then
echo "Coyote libraries installed and usable successfully"
else
echo "Something went wrong in appropriate installation of coyote and hiopy"
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment