added get-pip.py to the pip.sh script so pip can be installed if using an older version of python

This commit is contained in:
Brendan McDevitt 2016-10-16 09:14:40 -05:00
parent 7af0343324
commit ca73caf977
2 changed files with 7 additions and 0 deletions

View file

@ -1,6 +1,11 @@
#!/bin/bash
# this will install common libraries in pip
# get and install pip. comment this out if the version of python you are installing already comes bundled with pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
# adjust the pip version to whatever coincides with the python version installed in python.sh
# should be a good base of pkgs - https://pythontips.com/2013/07/30/20-python-libraries-you-cant-live-without/ip2 install lxml

View file

@ -9,6 +9,7 @@ pip_version=2.7
download_url=https://www.python.org/ftp/python/2.7.12/Python-${py_version}.tar.xz
# download the python version and extract it
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p "$DOTFILES_DIR/python"
cd "$DOTFILES_DIR/python"
@ -19,6 +20,7 @@ cd Python-${py_version}
# okay now install it
./configure --prefix=$DOTFILES_DIR/python
make
make install