-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
9 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
#!/usr/bin/env bash | ||
echo "arch-based distro detected" | ||
PYTHON=$1 | ||
|
||
# Check for python3.12 | ||
if ! pacman -Q "$PYTHON" &> /dev/null; then | ||
echo "$PYTHON not found. Installing..." | ||
sudo pacman -Sy --noconfirm "$PYTHON" "$PYTHON-dev" "$PYTHON-virtualenv" "$PYTHON-tk" | ||
fi | ||
|
||
# Check for pip | ||
if ! $PYTHON -m pip --version &> /dev/null; then | ||
echo "pip not found. Installing..." | ||
sudo pacman -Sy --noconfirm python-pip | ||
fi | ||
|
||
# Check for tkinter | ||
if ! $PYTHON -c "import tkinter" &> /dev/null; then | ||
echo "tkinter not found. Installing..." | ||
sudo pacman -Sy --noconfirm $PYTHON-tk | ||
fi | ||
|
||
# Check for python3-venv | ||
echo "Ensuring $PYTHON-virtualenv is insalled" | ||
sudo pacman -Sy --noconfirm "$PYTHON-virtualenv" | ||
echo "Installing Arch system dependencies" | ||
sudo pacman -Sy --noconfirm python-pip $PYTHON "$PYTHON-dev" "$PYTHON-virtualenv" "$PYTHON-tk" python3-pyaudio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
#!/usr/bin/env bash | ||
echo "fedora-based distro detected" | ||
PYTHON=$1 | ||
|
||
# Check for $PYTHON | ||
if ! dnf list installed "$PYTHON" &> /dev/null; then | ||
echo "$PYTHON not found. Installing..." | ||
sudo dnf install -y "$PYTHON" "$PYTHON-devel" "$PYTHON-virtualenv" | ||
fi | ||
|
||
# Check for pip | ||
if ! $PYTHON -m pip --version &> /dev/null; then | ||
echo "pip not found. Installing..." | ||
sudo dnf install -y python-pip | ||
fi | ||
|
||
# Check for tkinter | ||
if ! "$PYTHON" -c "import tkinter" &> /dev/null; then | ||
echo "tkinter not found. Installing..." | ||
sudo dnf install -y "$PYTHON-tkinter" | ||
fi | ||
|
||
echo "Ensuring $PYTHON-virtualenv is insalled" | ||
sudo dnf install -y "$PYTHON-virtualenv" | ||
echo "Installing Fedora system dependencies" | ||
sudo dnf install -y "$PYTHON" python-pip "$PYTHON-devel" "$PYTHON-virtualenv" "$PYTHON-tkinter" python3-pyaudio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
#!/usr/bin/env bash | ||
echo "suse-based distro detected" | ||
PYTHON=$1 | ||
|
||
# Check for $PYTHON | ||
if ! zypper info "$PYTHON" &> /dev/null; then | ||
echo "$PYTHON not found. Installing..." | ||
sudo zypper install -y "$PYTHON" "$PYTHON-devel" "$PYTHON-virtualenv" | ||
fi | ||
|
||
# Check for pip | ||
if ! $PYTHON -m pip --version &> /dev/null; then | ||
echo "pip not found. Installing..." | ||
sudo zypper install -y "$PYTHON-pip" | ||
fi | ||
|
||
# Check for tkinter | ||
if ! "$PYTHON" -c "import tkinter" &> /dev/null; then | ||
echo "tkinter not found. Installing..." | ||
sudo zypper install -y "$PYTHON-tk" | ||
fi | ||
|
||
echo "Ensuring $PYTHON-virtualenv is insalled" | ||
sudo zypper install -y "$PYTHON-virtualenv" | ||
echo "Installing SUSE system dependencies" | ||
sudo zypper install -y "$PYTHON" "$PYTHON-devel" "$PYTHON-tk" "$PYTHON-virtualenv" python3-pyaudio |