mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-13 09:17:06 +00:00
fixed python3 virtualenv support in pip wrapper, foresight via pip/virtualenv install
This commit is contained in:
parent
063f092cf1
commit
407375ce05
3 changed files with 9 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
3
foresight/uninstall
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
ctf-tools-pip3 uninstall foresight || true
|
Loading…
Reference in a new issue