Skip to content

Instantly share code, notes, and snippets.

@N-Coder
Created November 14, 2023 22:28
Show Gist options
  • Save N-Coder/59005f2578b4741cd60a14c15e62f221 to your computer and use it in GitHub Desktop.
Save N-Coder/59005f2578b4741cd60a14c15e62f221 to your computer and use it in GitHub Desktop.
cppyy CI installer
#!/bin/bash
set -e
set -x
if command -v dnf &> /dev/null
then
dnf install -y git g++ python3-devel python3-pip unzip util-linux
else
apt-get update && apt-get install -y git g++ python3-dev python3-pip python3-venv unzip curl util-linux
fi
python3 -VV
g++ --version -v
lscpu
# curl -sSf $(curl -sSf https://api.github.com/repos/wlav/cppyy-backend/actions/artifacts?per_page=1 | jq -r ".artifacts[0].archive_download_url") -o cppyy-backend.zip
curl -sSfL https://nightly.link/wlav/cppyy-backend/workflows/cling-wheels/master/artifact.zip -o cppyy-cling.zip
unzip cppyy-cling.zip -d cppyy-cling
python3 -m venv venv
source venv/bin/activate
pip install cppyy-cling --no-index --no-deps --find-links ./cppyy-cling
pip install git+https://github.com/wlav/cppyy-backend.git#subdirectory=clingwrapper --no-deps
pip install git+https://github.com/wlav/CPyCppyy.git --no-deps
pip install git+https://github.com/wlav/cppyy.git --no-deps
pip freeze
python3 -c "import cppyy; cppyy.cppexec('std::cout << __GLIBCXX__ << std::endl;')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment