Skip to content

Commit

Permalink
[FIX] install.sh: Fix issue pypa/pip#5247
Browse files Browse the repository at this point in the history
There are error installing package using pip10 because is not possible uninstall packages.
  • Loading branch information
moylop260 authored Dec 17, 2018
1 parent 1155b2b commit f43341c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f43341c

Please sign in to comment.