From 6013d20aefd3783a70fc958decf3da71821a1490 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 25 Jul 2019 09:07:35 +0200 Subject: [PATCH] unicorn build workaround --- unicorn_mode/build_unicorn_support.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/unicorn_mode/build_unicorn_support.sh b/unicorn_mode/build_unicorn_support.sh index f9e18fa9..9dcf6773 100644 --- a/unicorn_mode/build_unicorn_support.sh +++ b/unicorn_mode/build_unicorn_support.sh @@ -75,8 +75,13 @@ done if ! which easy_install > /dev/null; then - echo "[-] Error: Python setup-tools not found. Run 'sudo apt-get install python-setuptools'." - exit 1 + # work around for unusual installs + if [ '!' -e /usr/lib/python2.7/dist-packages/easy_install.py ]; then + + echo "[-] Error: Python setup-tools not found. Run 'sudo apt-get install python-setuptools'." + exit 1 + + fi fi