Try to use venv to avoid poetry dependencies conflict (with Ubuntu image)

This commit is contained in:
Hsiao-Wei Wang 2020-07-28 12:14:07 +08:00
parent 3c42ea99bc
commit 2572ec27ee
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4

View File

@ -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: |