mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 12:18:08 +00:00
Fix automatic unicornafl bindings install for python
This commit is contained in:
@ -1 +1 @@
|
|||||||
6e00ceac
|
2df75f3e
|
||||||
|
@ -117,21 +117,21 @@ done
|
|||||||
|
|
||||||
# some python version should be available now
|
# some python version should be available now
|
||||||
PYTHONS="`command -v python3` `command -v python` `command -v python2`"
|
PYTHONS="`command -v python3` `command -v python` `command -v python2`"
|
||||||
SETUPTOOLS_FOUND=0
|
PIP_FOUND=0
|
||||||
for PYTHON in $PYTHONS ; do
|
for PYTHON in $PYTHONS ; do
|
||||||
|
|
||||||
if $PYTHON -c "import setuptools" ; then
|
if $PYTHON -c "import pip" ; then
|
||||||
|
|
||||||
SETUPTOOLS_FOUND=1
|
PIP_FOUND=1
|
||||||
PYTHONBIN=$PYTHON
|
PYTHONBIN=$PYTHON
|
||||||
break
|
break
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
if [ "0" = $SETUPTOOLS_FOUND ]; then
|
if [ "0" = $PIP_FOUND ]; then
|
||||||
|
|
||||||
echo "[-] Error: Python setup-tools not found. Run 'sudo apt-get install python-setuptools', or install python3-setuptools, or run '$PYTHONBIN -m ensurepip', or create a virtualenv, or ..."
|
echo "[-] Error: Python pip not found. Run 'sudo apt-get install python-pip', or install python3-pip, or run '$PYTHONBIN -m ensurepip', or create a virtualenv, or ..."
|
||||||
PREREQ_NOTFOUND=1
|
PREREQ_NOTFOUND=1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@ -199,22 +199,22 @@ echo "[*] Installing Unicorn python bindings..."
|
|||||||
cd unicorn/bindings/python || exit 1
|
cd unicorn/bindings/python || exit 1
|
||||||
if [ -z "$VIRTUAL_ENV" ]; then
|
if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
echo "[*] Info: Installing python unicornafl using --user"
|
echo "[*] Info: Installing python unicornafl using --user"
|
||||||
THREADS=$CORES $PYTHONBIN setup.py install --user --force --prefix=|| exit 1
|
THREADS=$CORES $PYTHONBIN -m pip install --user --force .|| exit 1
|
||||||
else
|
else
|
||||||
echo "[*] Info: Installing python unicornafl to virtualenv: $VIRTUAL_ENV"
|
echo "[*] Info: Installing python unicornafl to virtualenv: $VIRTUAL_ENV"
|
||||||
THREADS=$CORES $PYTHONBIN setup.py install --force || exit 1
|
THREADS=$CORES $PYTHONBIN -m pip install --force .|| exit 1
|
||||||
fi
|
fi
|
||||||
cd ../../../
|
cd ../../../
|
||||||
echo "[*] Installing Unicornafl python bindings..."
|
echo "[*] Installing Unicornafl python bindings..."
|
||||||
cd bindings/python || exit 1
|
cd bindings/python || exit 1
|
||||||
if [ -z "$VIRTUAL_ENV" ]; then
|
if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
echo "[*] Info: Installing python unicornafl using --user"
|
echo "[*] Info: Installing python unicornafl using --user"
|
||||||
THREADS=$CORES $PYTHONBIN setup.py install --user --force --prefix=|| exit 1
|
THREADS=$CORES $PYTHONBIN -m pip install --user --force .|| exit 1
|
||||||
else
|
else
|
||||||
echo "[*] Info: Installing python unicornafl to virtualenv: $VIRTUAL_ENV"
|
echo "[*] Info: Installing python unicornafl to virtualenv: $VIRTUAL_ENV"
|
||||||
THREADS=$CORES $PYTHONBIN setup.py install --force || exit 1
|
THREADS=$CORES $PYTHONBIN -m pip install --force .|| exit 1
|
||||||
fi
|
fi
|
||||||
echo '[*] If needed, you can (re)install the bindings from `./unicornafl/bindings/python` using `python setup.py install`'
|
echo '[*] If needed, you can (re)install the bindings in `./unicornafl/bindings/python` using `pip install --force .`'
|
||||||
|
|
||||||
cd ../../ || exit 1
|
cd ../../ || exit 1
|
||||||
|
|
||||||
|
Submodule unicorn_mode/unicornafl updated: 6e00ceac6f...2df75f3e10
Reference in New Issue
Block a user