-
-
Save PEMessage/2797cb65f984b5ac692c9587f666991c to your computer and use it in GitHub Desktop.
Run ptghci in Ubuntu 24.04LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # sudo apt-get install libzmq3-dev pkg-config | |
| if [ ! -d .venv ] ; then | |
| uv venv --python 3.8 | |
| source .venv/bin/activate | |
| pip install pybits/requirements.txt | |
| fi | |
| source .venv/bin/activate | |
| cd `uv python dir`/cpython-3.8.20-linux-x86_64-gnu/lib/ | |
| export LD_LIBRARY_PATH="$(readlink -f .):$LD_LIBRARY_PATH" | |
| cd - | |
| if command -v ptghci > /dev/null ; then | |
| cd `uv python dir`/cpython-3.8.20-linux-x86_64-gnu/lib/pkgconfig | |
| export PKG_CONFIG_PATH="$(readlink -f .):$PKG_CONFIG_PATH" | |
| cd - | |
| stack install | |
| fi | |
| ptghci "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment