Update install.sh to include the dependencies of diff.py for --extra

This also pulls the dependencies out of install.sh into their own
requirements.txt and requirements_extra.txt so separate distros won't
have to maintain their Python dependencies separately
This commit is contained in:
Devon R 2020-10-15 16:02:52 +09:00
parent 1f54aaefa1
commit 69d98e7a18
No known key found for this signature in database
GPG Key ID: DC37E88F3B4F284E
3 changed files with 11 additions and 4 deletions

View File

@ -5,12 +5,12 @@ if command -v apt &> /dev/null; then
echo "Installing packages for Ubuntu"
sudo apt install -y git python3 python3-pip build-essential binutils-mips-linux-gnu zlib1g-dev libyaml-dev gcc-multilib || exit 1
python3 -m pip install capstone
python3 -m pip install -U -r requirements.txt
if [[ $1 == "--extra" ]]; then
echo "Installing extra"
sudo apt install -y clang-tidy astyle || exit 1
python3 -m pip install stringcase || exit 1
python3 -m pip install -U -r requirements_extra.txt || exit 1
fi
echo "Done"
@ -26,7 +26,7 @@ if command -v pacman &> /dev/null; then
# Install dependencies
sudo pacman -S --noconfirm --needed git python python-pip base-devel zlib libyaml lib32-glibc || exit 1
python3 -m pip install capstone
python3 -m pip install -U -r requirements.txt
# Install binutils if required
if ! command -v mips-linux-gnu-ar &> /dev/null; then
@ -51,7 +51,7 @@ if command -v pacman &> /dev/null; then
if [[ $1 == "--extra" ]]; then
echo "Installing extra"
sudo pacman -S --noconfirm --needed clang astyle || exit 1
python3 -m pip install stringcase || exit 1
python3 -m pip install -U -r requirements_extra.txt || exit 1
fi
echo "Done"

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
capstone

6
requirements_extra.txt Normal file
View File

@ -0,0 +1,6 @@
ansiwrap
colorama
cxxfilt
python-Levenshtein
stringcase
watchdog