From f43341c08222e1c2085cc4643f97c017152e1327 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Mon, 17 Dec 2018 15:36:23 -0600 Subject: [PATCH] [FIX] install.sh: Fix issue https://github.com/pypa/pip/issues/5247 There are error installing package using pip10 because is not possible uninstall packages. --- install.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 4c8694c..68cb62c 100755 --- a/install.sh +++ b/install.sh @@ -18,8 +18,10 @@ apt-get install -y python-pip python3-pip libxml2-dev libxslt-dev libevent-dev \ useradd -d /home/${USER} -m -s /bin/bash -p ${USER}pwd ${USER} # Upgrade python package manager pip -pip install -U pip -pip3 install -U pip +pip install -U --force-reinstall pip==9.0.3 +pip3 install -U --force-reinstall pip==9.0.3 + + # Configure locales to avoid coding errors echo "en_US.UTF-8 UTF-8" > /etc/locale.gen @@ -44,10 +46,10 @@ su - ${USER} -c "git config --global http.sslverify false" su - ${USER} -c "git clone --single-branch --depth=10 https://github.com/odoo/odoo.git -b 11.0 odoo-repo" # Install odoo dependencies for py2 and py3 -LC_ALL=C.UTF-8 LANG=C.UTF-8 python3.5 -m pip install -Ur /home/${USER}/odoo-repo/requirements.txt +LC_ALL=C.UTF-8 LANG=C.UTF-8 python3.5 -m pip install --disable-pip-version-check -Ur /home/${USER}/odoo-repo/requirements.txt wget https://raw.githubusercontent.com/odoo/odoo/10.0/requirements.txt -O /tmp/req10.txt -python2.7 -m pip install -Ur /tmp/req10.txt +python2.7 -m pip install --disable-pip-version-check -Ur /tmp/req10.txt rm /tmp/req10.txt apt-get install -y npm @@ -56,8 +58,8 @@ npm install -g less (cd /usr/bin && wget -qO- -t 1 --timeout=240 https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | tar -xJ --strip-components=2 wkhtmltox/bin/wkhtmltopdf) # Install python tools -python2.7 -m pip install -U bpython -python3.5 -m pip install -U bpython +python2.7 -m pip install --disable-pip-version-check -U bpython +python3.5 -m pip install --disable-pip-version-check -U bpython # configure vim IDE git clone --depth=1 --single-branch https://github.com/spf13/spf13-vim.git /tmp/spf13-vim