Skip to content

Commit

Permalink
Update install.sh to include the dependencies of diff.py for --extra
Browse files Browse the repository at this point in the history
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
  • Loading branch information
scarletcafe committed Oct 15, 2020
1 parent 1f54aae commit 69d98e7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
capstone
6 changes: 6 additions & 0 deletions requirements_extra.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ansiwrap
colorama
cxxfilt
python-Levenshtein
stringcase
watchdog

0 comments on commit 69d98e7

Please sign in to comment.