mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 12:32:38 +01:00
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:
parent
1f54aaefa1
commit
69d98e7a18
@ -5,12 +5,12 @@ if command -v apt &> /dev/null; then
|
|||||||
echo "Installing packages for Ubuntu"
|
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
|
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
|
if [[ $1 == "--extra" ]]; then
|
||||||
echo "Installing extra"
|
echo "Installing extra"
|
||||||
sudo apt install -y clang-tidy astyle || exit 1
|
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
|
fi
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
@ -26,7 +26,7 @@ if command -v pacman &> /dev/null; then
|
|||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
sudo pacman -S --noconfirm --needed git python python-pip base-devel zlib libyaml lib32-glibc || exit 1
|
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
|
# Install binutils if required
|
||||||
if ! command -v mips-linux-gnu-ar &> /dev/null; then
|
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
|
if [[ $1 == "--extra" ]]; then
|
||||||
echo "Installing extra"
|
echo "Installing extra"
|
||||||
sudo pacman -S --noconfirm --needed clang astyle || exit 1
|
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
|
fi
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
capstone
|
6
requirements_extra.txt
Normal file
6
requirements_extra.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ansiwrap
|
||||||
|
colorama
|
||||||
|
cxxfilt
|
||||||
|
python-Levenshtein
|
||||||
|
stringcase
|
||||||
|
watchdog
|
Loading…
Reference in New Issue
Block a user