mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
Install sopel master branch
This commit is contained in:
parent
576246232e
commit
bbc2ac5f74
@ -1,4 +1,3 @@
|
|||||||
spicemanip>=0.1.6
|
spicemanip>=0.1.6
|
||||||
gitpython
|
gitpython
|
||||||
fake-useragent
|
fake-useragent
|
||||||
git+git://github.com/sopel-irc/sopel@master
|
|
||||||
|
|||||||
17
setup.py
17
setup.py
@ -21,6 +21,19 @@ def stock_modules_begone():
|
|||||||
os.system("sudo mv " + path + " " + stockdir)
|
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__':
|
if __name__ == '__main__':
|
||||||
print('Sopel does not correctly load modules installed with setup.py '
|
print('Sopel does not correctly load modules installed with setup.py '
|
||||||
'directly. Please use "pip install .", or add {}/sopel_modules to '
|
'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:
|
with open('NEWS') as history_file:
|
||||||
history = history_file.read()
|
history = history_file.read()
|
||||||
|
|
||||||
|
sopel_master_install()
|
||||||
|
|
||||||
with open('requirements.txt') as requirements_file:
|
with open('requirements.txt') as requirements_file:
|
||||||
requirements = [req for req in requirements_file.readlines()]
|
requirements = [req for req in requirements_file.readlines()]
|
||||||
|
|
||||||
with open('dev-requirements.txt') as dev_requirements_file:
|
with open('dev-requirements.txt') as dev_requirements_file:
|
||||||
dev_requirements = [req for req in dev_requirements_file.readlines()]
|
dev_requirements = [req for req in dev_requirements_file.readlines()]
|
||||||
|
|
||||||
stock_modules_begone()
|
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='sopel_modules.SpiceBot',
|
name='sopel_modules.SpiceBot',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user