only run install -r requirements once

This commit is contained in:
j 2023-07-27 19:05:25 +02:00
parent 13d6f7e316
commit ff0c9b8221

View file

@ -297,14 +297,8 @@ if __name__ == "__main__":
run_sql(sql) run_sql(sql)
run(join(base, 'pandora/manage.py'), 'migrate', 'system') run(join(base, 'pandora/manage.py'), 'migrate', 'system')
run(join(base, 'pandora/manage.py'), 'update_geoip') run(join(base, 'pandora/manage.py'), 'update_geoip')
if old <= 6383:
run('./bin/pip', 'install', '-r', 'requirements.txt')
if old < 6442: if old < 6442:
run('./bin/pip', 'install', 'yt-dlp>=2022.3.8.2') run('./bin/pip', 'install', 'yt-dlp>=2022.3.8.2')
if old < 6465:
run('./bin/pip', 'install', '-r', 'requirements.txt')
if old < 6500:
run('./bin/pip', 'install', '-r', 'requirements.txt')
if old <= 6517: if old <= 6517:
run('./bin/pip', 'install', '-U', 'pip') run('./bin/pip', 'install', '-U', 'pip')
run('./bin/pip', 'install', '-r', 'requirements.txt') run('./bin/pip', 'install', '-r', 'requirements.txt')