mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(installer): clean up unused code
This commit is contained in:
parent
dfc8d1bb10
commit
5b7b1122cb
@ -28,25 +28,11 @@ class Installer:
|
|||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.reqs = INSTALLER_REQS
|
self.reqs = INSTALLER_REQS
|
||||||
self.preflight()
|
|
||||||
if os.getenv("VIRTUAL_ENV") is not None:
|
if os.getenv("VIRTUAL_ENV") is not None:
|
||||||
print("A virtual environment is already activated. Please 'deactivate' before installation.")
|
print("A virtual environment is already activated. Please 'deactivate' before installation.")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
self.bootstrap()
|
self.bootstrap()
|
||||||
|
|
||||||
def preflight(self) -> None:
|
|
||||||
"""
|
|
||||||
Preflight checks
|
|
||||||
"""
|
|
||||||
|
|
||||||
# TODO
|
|
||||||
# verify python version
|
|
||||||
# on macOS verify XCode tools are present
|
|
||||||
# verify libmesa, libglx on linux
|
|
||||||
# check that the system arch is not i386 (?)
|
|
||||||
# check that the system has a GPU, and the type of GPU
|
|
||||||
|
|
||||||
pass
|
|
||||||
|
|
||||||
def mktemp_venv(self) -> TemporaryDirectory:
|
def mktemp_venv(self) -> TemporaryDirectory:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user