mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-23 21:18:07 +00:00
Remove need for python systemd package
This commit is contained in:
parent
e144143912
commit
0592f383bb
|
@ -1,14 +1,12 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/local/bin/python3
|
||||
import time
|
||||
import os
|
||||
import subprocess
|
||||
import signal
|
||||
import logging
|
||||
from systemd import journal
|
||||
from threading import Thread
|
||||
|
||||
log = logging.getLogger('mynode')
|
||||
log.addHandler(journal.JournaldLogHandler())
|
||||
log.setLevel(logging.INFO)
|
||||
|
||||
def print_and_log(msg):
|
||||
|
|
|
@ -139,8 +139,7 @@ if ! skip_base_upgrades ; then
|
|||
pip2 install tzupdate virtualenv pysocks redis qrcode image subprocess32 --no-cache-dir
|
||||
|
||||
|
||||
# Update Python3 to 3.7.X
|
||||
PYTHON_VERSION=3.7.9
|
||||
# Update Python3
|
||||
CURRENT_PYTHON3_VERSION=$(python3 --version)
|
||||
if [[ "$CURRENT_PYTHON3_VERSION" != *"Python ${PYTHON_VERSION}"* ]]; then
|
||||
mkdir -p /opt/download
|
||||
|
@ -162,7 +161,7 @@ if ! skip_base_upgrades ; then
|
|||
|
||||
# Install any pip3 software
|
||||
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
|
||||
|
||||
# Update Node
|
||||
|
|
|
@ -225,8 +225,7 @@ pip2 install grpcio grpcio-tools googleapis-common-protos
|
|||
pip2 install tzupdate virtualenv pysocks redis qrcode image subprocess32
|
||||
|
||||
|
||||
# Update Python3 to 3.7.X
|
||||
PYTHON_VERSION=3.7.9
|
||||
# Update Python3
|
||||
CURRENT_PYTHON3_VERSION=$(python3 --version)
|
||||
if [[ "$CURRENT_PYTHON3_VERSION" != *"Python ${PYTHON_VERSION}"* ]]; then
|
||||
mkdir -p /opt/download
|
||||
|
@ -249,7 +248,7 @@ fi
|
|||
# Install Python3 specific tools (run multiple times to make sure success)
|
||||
pip3 install --upgrade pip wheel setuptools
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user