Skip to content

Commit

Permalink
* Update the LD_LIBRARY_PATH and PYTHONPATH for Python wheels testing
Browse files Browse the repository at this point in the history
  • Loading branch information
khalatepradnya committed Jan 11, 2024
1 parent 860d081 commit c6a70aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test_in_devenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,10 @@ jobs:
pip install iqm_client --user -vvv
pip install . --user -vvv
## [RPATH-FIX] : Start
export LD_LIBRARY_PATH=$CUDAQ_INSTALL_PREFIX/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export PYTHONPATH=./build${PYTHONPATH:+:$PYTHONPATH}
install_loc=$(python3 -m pip show cuda-quantum | grep "Location")
install_loc="${loc#*Location: }"
export LD_LIBRARY_PATH=$install_loc/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export PYTHONPATH=./_skbuild${PYTHONPATH:+:$PYTHONPATH}
## [RPATH-FIX] : End
python3 -m pytest -v python/tests/ \
--ignore python/tests/backends \
Expand Down

0 comments on commit c6a70aa

Please sign in to comment.