From bbc2ac5f74605043b1fbea7d743c3648b473b240 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 5 May 2019 12:05:57 -0400 Subject: [PATCH] Install sopel master branch --- requirements.txt | 1 - setup.py | 17 +++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 456f8d5..6aabc4d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ spicemanip>=0.1.6 gitpython fake-useragent -git+git://github.com/sopel-irc/sopel@master diff --git a/setup.py b/setup.py index f820ecd..03dfcac 100755 --- a/setup.py +++ b/setup.py @@ -21,6 +21,19 @@ def stock_modules_begone(): os.system("sudo mv " + path + " " + stockdir) +def sopel_master_install(): + + pipcommand = "sudo pip3 install --upgrade" + pipcommand += " --force-reinstall" + pipcommand += " git+https://github.com/sopel-irc/sopel@master" + + print('Running {} '.format(pipcommand), file=sys.stderr) + for line in os.popen(pipcommand).read().split('\n'): + print(line, file=sys.stderr) + + stock_modules_begone() + + if __name__ == '__main__': print('Sopel does not correctly load modules installed with setup.py ' 'directly. Please use "pip install .", or add {}/sopel_modules to ' @@ -34,14 +47,14 @@ with open('README.md') as readme_file: with open('NEWS') as history_file: history = history_file.read() +sopel_master_install() + with open('requirements.txt') as requirements_file: requirements = [req for req in requirements_file.readlines()] with open('dev-requirements.txt') as dev_requirements_file: dev_requirements = [req for req in dev_requirements_file.readlines()] -stock_modules_begone() - setup( name='sopel_modules.SpiceBot',