2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Removes custom plugins directory

- rely on plugins.txt instead
This commit is contained in:
Oliver
2022-01-06 13:31:04 +11:00
parent 75d5f9d6e6
commit 836b6275b6
3 changed files with 17 additions and 31 deletions

View File

@ -71,19 +71,6 @@ def manage(c, cmd, pty=False):
cmd=cmd
), pty=pty)
@task
def install(c):
"""
Installs required python packages
"""
print("Installing required python packages from 'requirements.txt'")
# Install required Python packages with PIP
c.run('pip3 install -U -r requirements.txt')
@task
def plugins(c):
"""
@ -99,12 +86,24 @@ def plugins(c):
if not os.path.exists(PLUGIN_FILE):
# Create an empty plugin
print(f"Plugins file '{PLUGIN_FILE}' does not exist")
return
print(f"Installing plugin packages from '{PLUGIN_FILE}'")
# Install the plugins
c.run(f"pip3 install -U -r '{PLUGIN_FILE}'")
@task(post=[plugins])
def install(c):
"""
Installs required python packages
"""
print("Installing required python packages from 'requirements.txt'")
# Install required Python packages with PIP
c.run('pip3 install -U -r requirements.txt')
@task
def shell(c):
"""