From f9fa62164ee11748b6ceb7ab4a2818c8a24d5190 Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Thu, 1 Feb 2024 19:23:01 -0500 Subject: [PATCH] tidy(installer): remove .whl publishing and bundling - we now install from pypi --- installer/create_installer.sh | 36 ++--------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/installer/create_installer.sh b/installer/create_installer.sh index 46c2783bfa..3b54443449 100755 --- a/installer/create_installer.sh +++ b/installer/create_installer.sh @@ -14,7 +14,7 @@ function is_bin_in_path { } function git_show { - git show -s --format='%h %s' $1 + git show -s --format=oneline --abbrev-commit "$1" | cat } if [[ -v "VIRTUAL_ENV" ]]; then @@ -48,38 +48,9 @@ PATCH="" VERSION="v${VERSION}${PATCH}" echo -e "${BGREEN}HEAD${RESET}:" -git_show +git_show HEAD echo -# ---------------------- FRONTEND ---------------------- - -pushd ../invokeai/frontend/web >/dev/null -echo -echo "Installing frontend dependencies..." -echo -pnpm i --frozen-lockfile -echo -echo "Building frontend..." -echo -pnpm build -popd - -# ---------------------- BACKEND ---------------------- - -echo -echo "Building wheel..." -echo - -# install the 'build' package in the user site packages, if needed -# could be improved by using a temporary venv, but it's tiny and harmless -if [[ $(python -c 'from importlib.util import find_spec; print(find_spec("build") is None)') == "True" ]]; then - pip install --user build -fi - -rm -rf ../build - -python -m build --wheel --outdir dist/ ../. - # ---------------------- echo @@ -98,9 +69,6 @@ done mkdir InvokeAI-Installer/lib cp lib/*.py InvokeAI-Installer/lib -# Move the wheel -mv dist/*.whl InvokeAI-Installer/lib/ - # Install scripts # Mac/Linux cp install.sh.in InvokeAI-Installer/install.sh