Setup: add setup specific requirements

This commit is contained in:
Fabian Dill
2022-01-22 20:35:30 +01:00
parent 66c15c8639
commit c7e87bc16a
3 changed files with 15 additions and 5 deletions

View File

@@ -3,6 +3,16 @@ import shutil
import sys
import sysconfig
from pathlib import Path
import ModuleUpdate
# I don't really want to have another root directory file for a single requirement, but this special case is also jank.
# Might move this into a cleaner solution when I think of one.
with open("freeze_requirements.txt", "w") as f:
f.write("cx-Freeze>=6.9\n")
ModuleUpdate.requirements_files.add("freeze_requirements.txt")
ModuleUpdate.requirements_files.add(os.path.join("WebHostLib", "requirements.txt"))
ModuleUpdate.update()
import cx_Freeze
from kivy_deps import sdl2, glew
from Utils import version_tuple