fixed python3 virtualenv support in pip wrapper, foresight via pip/virtualenv install

This commit is contained in:
Michael Rodler 2016-02-18 17:09:37 +01:00
parent 063f092cf1
commit 407375ce05
3 changed files with 9 additions and 13 deletions

View file

@ -1,11 +1,14 @@
#!/bin/bash
set -e -o pipefail
#set -x
# let's stick with python 2 as default
PY_VERSION=2
if [[ "$0" =~ \.+pip3 ]]; then
# check this scripts file ending
if [[ "$0" =~ pip3 ]]; then
PY_VERSION=3
fi
if [[ "$0" =~ \.+pip2 ]]; then
if [[ "$0" =~ pip2 ]]; then
PY_VERSION=2
fi

View file

@ -1,13 +1,3 @@
#!/bin/bash -e
git clone --depth 1 https://github.com/ALSchwalm/foresight.git
# python3 virtualenv
virtualenv -p $(which python3) python3
source python3/bin/activate
pip install -e foresight
mkdir -p bin
cd bin
ln -s ../python3/bin/foresee .
cd ..
ctf-tools-pip3 install --upgrade 'git+https://github.com/ALSchwalm/foresight.git'

3
foresight/uninstall Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash -e
ctf-tools-pip3 uninstall foresight || true