removed user python stuff since i learned more about python you can use virtual environments instead which is much more efficient than a local installation of python

This commit is contained in:
Brendan McDevitt 2017-08-09 13:10:03 -04:00
parent e2e879cc81
commit 239b3e39dd
3 changed files with 0 additions and 58 deletions

View file

@ -15,9 +15,3 @@ ln -sfv "$DOTFILES_DIR/.bashrc" ~
ln -sfv "$DOTFILES_DIR/.bash_aliases" ~
ln -sfv "$DOTFILES_DIR/.bash_functions" ~
ln -sfv "$DOTFILES_DIR/.env" ~
# local programming languages
. "$DOTFILES_DIR/install/python.sh"
# pkg managers
. "$DOTFILES_DIR/pip.sh"

View file

@ -1,22 +0,0 @@
#!/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
version=2.7
pip${version} install requests
pip${version} install lxml
pip${version} install requests
pip${version} install scrapy
pip${version} install BeautifulSoup4
pip${version} install twisted
pip${version} install numpy
pip${version} install scapy
pip${version} install nose
pip${version} install ipython

View file

@ -1,30 +0,0 @@
#!/bin/bash
# this will install a local copy of python for the user
# change the version if you want a different version
# https://www.python.org/downloads/
py_version=2.7.12
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"
wget $download_url
tar xvf Python-${py_version}.tar.xz
find "$DOTFILES_DIR/python" -type d -exec chmod 0755 {} \;
cd Python-${py_version}
# okay now install it
./configure --prefix=$DOTFILES_DIR/python
make
make install
# update the users $PATH variable to include the newly installed python binary
export PATH="$DOTFILES_DIR/python/bin:$PATH"
export PYTHONPATH="$DOTFILES_DIR/python/bin"