Remove need for python systemd package

This commit is contained in:
Taylor Helsper 2021-11-21 20:59:59 -06:00
parent e144143912
commit 0592f383bb
3 changed files with 5 additions and 9 deletions

View File

@ -1,14 +1,12 @@
#!/usr/bin/python3 #!/usr/local/bin/python3
import time import time
import os import os
import subprocess import subprocess
import signal import signal
import logging import logging
from systemd import journal
from threading import Thread from threading import Thread
log = logging.getLogger('mynode') log = logging.getLogger('mynode')
log.addHandler(journal.JournaldLogHandler())
log.setLevel(logging.INFO) log.setLevel(logging.INFO)
def print_and_log(msg): def print_and_log(msg):

View File

@ -139,8 +139,7 @@ if ! skip_base_upgrades ; then
pip2 install tzupdate virtualenv pysocks redis qrcode image subprocess32 --no-cache-dir pip2 install tzupdate virtualenv pysocks redis qrcode image subprocess32 --no-cache-dir
# Update Python3 to 3.7.X # Update Python3
PYTHON_VERSION=3.7.9
CURRENT_PYTHON3_VERSION=$(python3 --version) CURRENT_PYTHON3_VERSION=$(python3 --version)
if [[ "$CURRENT_PYTHON3_VERSION" != *"Python ${PYTHON_VERSION}"* ]]; then if [[ "$CURRENT_PYTHON3_VERSION" != *"Python ${PYTHON_VERSION}"* ]]; then
mkdir -p /opt/download mkdir -p /opt/download
@ -162,7 +161,7 @@ if ! skip_base_upgrades ; then
# Install any pip3 software # Install any pip3 software
pip3 install --upgrade pip setuptools wheel pip3 install --upgrade pip setuptools wheel
pip3 install gnureadline docker-compose pipenv bcrypt pysocks redis systemd --no-cache-dir pip3 install gnureadline docker-compose pipenv bcrypt pysocks redis --no-cache-dir
pip3 install flask pam python-bitcoinrpc prometheus_client psutil transmissionrpc qrcode image --no-cache-dir pip3 install flask pam python-bitcoinrpc prometheus_client psutil transmissionrpc qrcode image --no-cache-dir
# Update Node # Update Node

View File

@ -225,8 +225,7 @@ pip2 install grpcio grpcio-tools googleapis-common-protos
pip2 install tzupdate virtualenv pysocks redis qrcode image subprocess32 pip2 install tzupdate virtualenv pysocks redis qrcode image subprocess32
# Update Python3 to 3.7.X # Update Python3
PYTHON_VERSION=3.7.9
CURRENT_PYTHON3_VERSION=$(python3 --version) CURRENT_PYTHON3_VERSION=$(python3 --version)
if [[ "$CURRENT_PYTHON3_VERSION" != *"Python ${PYTHON_VERSION}"* ]]; then if [[ "$CURRENT_PYTHON3_VERSION" != *"Python ${PYTHON_VERSION}"* ]]; then
mkdir -p /opt/download mkdir -p /opt/download
@ -249,7 +248,7 @@ fi
# Install Python3 specific tools (run multiple times to make sure success) # Install Python3 specific tools (run multiple times to make sure success)
pip3 install --upgrade pip wheel setuptools pip3 install --upgrade pip wheel setuptools
pip3 install bitstring lnd-grpc pycoin aiohttp connectrum python-bitcoinlib pip3 install bitstring lnd-grpc pycoin aiohttp connectrum python-bitcoinlib
pip3 install gnureadline docker-compose pipenv bcrypt pysocks redis systemd --no-cache-dir pip3 install gnureadline docker-compose pipenv bcrypt pysocks redis --no-cache-dir
pip3 install flask pam python-bitcoinrpc prometheus_client psutil transmissionrpc qrcode image --no-cache-dir pip3 install flask pam python-bitcoinrpc prometheus_client psutil transmissionrpc qrcode image --no-cache-dir