(installer) use pep517 for installing dependencies

the 'setup.py install' method is deprecated in favour of a
build-system independent format: https://peps.python.org/pep-0517/

this is needed to install dependencies that don't have a pyproject.toml
file (only setup.py) in a forward-compatible way
This commit is contained in:
Eugene Brodsky 2023-01-14 02:27:29 -05:00
parent 9997fde144
commit d36bbb817c

View File

@ -228,6 +228,7 @@ class InvokeAiInstance:
(Path(__file__).parents[1] / "environments-and-requirements/requirements-base.txt")
.expanduser()
.resolve(),
"--use-pep517",
extra_index_url_arg,
extra_index_url,
]
@ -240,6 +241,7 @@ class InvokeAiInstance:
"install",
"--require-virtualenv",
Path(__file__).parents[1].expanduser().resolve(),
"--use-pep517",
extra_index_url_arg,
extra_index_url,
]