mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
unicorn_mode build script: find setuptools more reliably
This commit is contained in:
parent
62b6af693d
commit
1eb81fdf36
17
unicorn_mode/build_unicorn_support.sh
Executable file → Normal file
17
unicorn_mode/build_unicorn_support.sh
Executable file → Normal file
@ -107,8 +107,21 @@ done
|
|||||||
|
|
||||||
if ! type $EASY_INSTALL > /dev/null; then
|
if ! type $EASY_INSTALL > /dev/null; then
|
||||||
|
|
||||||
# work around for unusual installs
|
# work around for installs with executable easy_install
|
||||||
if [ '!' -e /usr/lib/python2.7/dist-packages/easy_install.py ] && [ '!' -e /usr/local/lib/python2.7/dist-packages/easy_install.py ] && [ '!' -e /usr/pkg/lib/python2.7/dist-packages/easy_install.py ]; then
|
EASY_INSTALL_FOUND=0
|
||||||
|
MYPYTHONPATH=`python -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p}'`
|
||||||
|
for PATHCANDIDATE in \
|
||||||
|
"dist-packages/" \
|
||||||
|
"site-packages/"
|
||||||
|
do
|
||||||
|
if [ -e "${MYPYTHONPATH}/${PATHCANDIDATE}/easy_install.py" ] ; then
|
||||||
|
|
||||||
|
EASY_INSTALL_FOUND=1
|
||||||
|
break
|
||||||
|
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ '!' $EASY_INSTALL_FOUND ]; then
|
||||||
|
|
||||||
echo "[-] Error: Python setup-tools not found. Run 'sudo apt-get install python-setuptools'."
|
echo "[-] Error: Python setup-tools not found. Run 'sudo apt-get install python-setuptools'."
|
||||||
PREREQ_NOTFOUND=1
|
PREREQ_NOTFOUND=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user