mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 22:20:58 -05:00
pip.main install test
This commit is contained in:
parent
2a8dc4fa8c
commit
622021f765
@ -7,6 +7,7 @@ import sopel.module
|
||||
from sopel.config.types import StaticSection, ValidatedAttribute
|
||||
|
||||
import os
|
||||
import pip
|
||||
|
||||
import spicemanip
|
||||
|
||||
@ -67,11 +68,21 @@ def nickname_comand_chanstats(bot, trigger):
|
||||
|
||||
def spicebot_update(bot, deps="False"):
|
||||
|
||||
"""
|
||||
pipcommand = "sudo pip3 install --upgrade"
|
||||
if deps == "False":
|
||||
pipcommand += " --no-deps"
|
||||
pipcommand += " --force-reinstall"
|
||||
pipcommand += " git+" + str(bot.config.SpiceBot_Update.gitrepo) + "@" + str(bot.config.SpiceBot_Update.gitbranch)
|
||||
"""
|
||||
|
||||
pipcommand = ['install']
|
||||
pipcommand.append('--upgrade')
|
||||
if deps == "False":
|
||||
pipcommand.append('--no-deps')
|
||||
pipcommand.append('--force-reinstall')
|
||||
pipcommand.append("git+" + str(bot.config.SpiceBot_Update.gitrepo) + "@" + str(bot.config.SpiceBot_Update.gitbranch))
|
||||
pip.main(pipcommand)
|
||||
|
||||
bot_logging(bot, 'SpiceBot_Update', "Running `" + pipcommand + "`")
|
||||
for line in os.popen(pipcommand).read().split('\n'):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user