From 239b3e39dd28db7c49c025ec7f6601fcf62eaceb Mon Sep 17 00:00:00 2001 From: Brendan McDevitt <bpmcdevitt@gmail.com> Date: Wed, 9 Aug 2017 13:10:03 -0400 Subject: [PATCH] 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 --- install.sh | 6 ------ install/pip.sh | 22 ---------------------- install/python.sh | 30 ------------------------------ 3 files changed, 58 deletions(-) delete mode 100755 install/pip.sh delete mode 100755 install/python.sh diff --git a/install.sh b/install.sh index ef5f69d..ab55ae0 100755 --- a/install.sh +++ b/install.sh @@ -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" diff --git a/install/pip.sh b/install/pip.sh deleted file mode 100755 index 61c8bd6..0000000 --- a/install/pip.sh +++ /dev/null @@ -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 diff --git a/install/python.sh b/install/python.sh deleted file mode 100755 index 55eb8ac..0000000 --- a/install/python.sh +++ /dev/null @@ -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"