[FIX] pip error missing bz2 dependency

- Remove artifacts, this cause interference with some pip installation
- You need to recompile your python after installing libbz2-dev from .pyenv
This commit is contained in:
Mathieu Benoit 2020-09-05 00:22:25 -04:00
parent 492fc4c5b0
commit 9b466e552d
2 changed files with 3 additions and 1 deletions

View file

@ -40,7 +40,7 @@ sudo su - postgres -c "createuser -s ${EL_USER}" 2> /dev/null || true
# Install Dependencies
#--------------------------------------------------
echo -e "\n--- Installing debian dependency --"
sudo apt-get install git build-essential wget libxslt-dev libzip-dev libldap2-dev libsasl2-dev node-less libpng12-0 gdebi-core libffi-dev -y
sudo apt-get install git build-essential wget libxslt-dev libzip-dev libldap2-dev libsasl2-dev node-less libpng12-0 gdebi-core libffi-dev libbz2-dev -y
sudo apt-get install libmariadbd-dev -y
echo -e "\n---- Installing nodeJS NPM and rtlcss for LTR support ----"

View file

@ -221,6 +221,8 @@ ${VENV_PATH}/bin/pip install --upgrade pip
#/home/"${USER}"/.poetry/bin/poetry env use ${PYTHON_EXEC}
source $HOME/.poetry/env
poetry install
# Delete artifacts created by pip, cause error in next "poetry install"
rm -rf artifacts
# Link for dev
echo -e "\n---- Add link dependency in site-packages of Python ----"