mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-03-28 17:43:06 +01:00
Fix: Update pip installation command to use python3 -m and correct package name
This commit is contained in:
@@ -204,7 +204,7 @@ install_repeater() {
|
|||||||
|
|
||||||
echo "25"; echo "# Installing system dependencies..."
|
echo "25"; echo "# Installing system dependencies..."
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
apt-get install -y libffi-dev jq pip python3-rrdtool wget swig build-essential python3-dev
|
apt-get install -y libffi-dev jq python3-pip python3-rrdtool wget swig build-essential python3-dev
|
||||||
|
|
||||||
# Install mikefarah yq v4 if not already installed
|
# Install mikefarah yq v4 if not already installed
|
||||||
if ! command -v yq &> /dev/null || [[ "$(yq --version 2>&1)" != *"mikefarah/yq"* ]]; then
|
if ! command -v yq &> /dev/null || [[ "$(yq --version 2>&1)" != *"mikefarah/yq"* ]]; then
|
||||||
@@ -261,7 +261,7 @@ install_repeater() {
|
|||||||
SCRIPT_DIR="$(dirname "$0")"
|
SCRIPT_DIR="$(dirname "$0")"
|
||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
if pip install --break-system-packages --force-reinstall --no-cache-dir --ignore-installed .; then
|
if python3 -m pip install --break-system-packages --force-reinstall --no-cache-dir --ignore-installed .; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "✓ Python package installation completed successfully!"
|
echo "✓ Python package installation completed successfully!"
|
||||||
|
|
||||||
@@ -340,7 +340,7 @@ upgrade_repeater() {
|
|||||||
echo "[3/9] Updating system dependencies..."
|
echo "[3/9] Updating system dependencies..."
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
|
|
||||||
apt-get install -y libffi-dev jq pip python3-rrdtool wget swig build-essential python3-dev
|
apt-get install -y libffi-dev jq python3-pip python3-rrdtool wget swig build-essential python3-dev
|
||||||
|
|
||||||
# Install mikefarah yq v4 if not already installed
|
# Install mikefarah yq v4 if not already installed
|
||||||
if ! command -v yq &> /dev/null || [[ "$(yq --version 2>&1)" != *"mikefarah/yq"* ]]; then
|
if ! command -v yq &> /dev/null || [[ "$(yq --version 2>&1)" != *"mikefarah/yq"* ]]; then
|
||||||
@@ -392,7 +392,7 @@ upgrade_repeater() {
|
|||||||
SCRIPT_DIR="$(dirname "$0")"
|
SCRIPT_DIR="$(dirname "$0")"
|
||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
if pip install --break-system-packages --force-reinstall --no-cache-dir --ignore-installed .; then
|
if python3 -m pip install --break-system-packages --force-reinstall --no-cache-dir --ignore-installed .; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "✓ Python package update completed successfully!"
|
echo "✓ Python package update completed successfully!"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user