From 2572ec27ee04fb5654f4afa5f747001add23053a Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Tue, 28 Jul 2020 12:14:07 +0800 Subject: [PATCH] Try to use venv to avoid `poetry` dependencies conflict (with Ubuntu image) --- .circleci/config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dc89667..160adff 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -110,14 +110,16 @@ jobs: - checkout - run: name: Install building requirements on Linux - command: pip install -r ./build_configs/linux/requirements.txt + command: | + python3 -m venv venv; + ./venv/bin/python -m pip install -r ./build_configs/linux/requirements.txt; - run: name: Build with build.spec command: | export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7) export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-linux-amd64; mkdir ${BUILD_FILE_NAME}; - pyinstaller --distpath ./${BUILD_FILE_NAME} ./build_configs/linux/build.spec; + ./venv/bin/pyinstaller --distpath ./${BUILD_FILE_NAME} ./build_configs/linux/build.spec; - run: name: Compress the file command: |