From a5027134f86c8b04ac81b17127a727c9642064b3 Mon Sep 17 00:00:00 2001 From: Nic30 Date: Sat, 6 May 2023 01:05:16 +0200 Subject: [PATCH] circleci: use venv --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 13574193..7fb722fd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,7 +19,9 @@ jobs: export DEBIAN_FRONTEND=noninteractive export TZ=America/USA apt update - apt install -y build-essential libantlr4-runtime-dev antlr4 cmake ninja-build python3-pip python3-dev python3 python3-pip git lcov rubygems + apt install -y build-essential libantlr4-runtime-dev antlr4 cmake ninja-build python3-pip python3-dev python3 python3-pip python3-venv git lcov rubygems + python3 -m venv venv + echo "source $PWD/venv/bin/activate" >> $BASH_ENV echo 'export SKBUILD_CONFIGURE_OPTIONS="-DCMAKE_BUILD_TYPE:STRING=Debug -DCODE_COVERAGE=ON"' >> $BASH_ENV # because we do not have enough RAM echo 'export SKBUILD_BUILD_OPTIONS="-j1"' >> $BASH_ENV @@ -83,7 +85,9 @@ jobs: export DEBIAN_FRONTEND=noninteractive export TZ=America/USA apt update - apt install -y build-essential libantlr4-runtime-dev antlr4 cmake ninja-build python3-pip python3-dev python3 python3-pip git lcov rubygems + apt install -y build-essential libantlr4-runtime-dev antlr4 cmake ninja-build python3-pip python3-dev python3 python3-pip python3-venv git lcov rubygems + python3 -m venv venv + echo "source $PWD/venv/bin/activate" >> $BASH_ENV # because we do not have enough RAM echo 'export SKBUILD_BUILD_OPTIONS="-j1"' >> $BASH_ENV source $BASH_ENV @@ -110,7 +114,7 @@ jobs: # echo export CXXFLAGS=\"$CXXFLAGS --param ggc-min-expand=1 --param ggc-min-heapsize=32768\" >> "$BASH_ENV" - py/install-setup-py: rm-package-dir: true - build-args: "--user --verbose" + build-args: "--verbose" # - python/save-cache - py/test-and-coverage: coverage: false