Skip to content

Commit 3940371

Browse files
committed
remove modifications to isntaller script
1 parent 34213ac commit 3940371

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

installer/create_installer.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ set -e
44

55
cd "$(dirname "$0")"
66

7-
# if [[ -v "VIRTUAL_ENV" ]]; then
8-
# # we can't just call 'deactivate' because this function is not exported
9-
# # to the environment of this script from the bash process that runs the script
10-
# echo "A virtual environment is activated. Please deactivate it before proceeding".
11-
# exit -1
12-
# fi
13-
14-
VERSION=$(cd ..; python3 -c "from invokeai.version import __version__ as version; print(version)")
7+
if [[ -v "VIRTUAL_ENV" ]]; then
8+
# we can't just call 'deactivate' because this function is not exported
9+
# to the environment of this script from the bash process that runs the script
10+
echo "A virtual environment is activated. Please deactivate it before proceeding".
11+
exit -1
12+
fi
13+
14+
VERSION=$(cd ..; python -c "from invokeai.version import __version__ as version; print(version)")
1515
PATCH=""
1616
VERSION="v${VERSION}${PATCH}"
1717
LATEST_TAG="v3-latest"
@@ -42,12 +42,12 @@ echo Building the wheel
4242

4343
# install the 'build' package in the user site packages, if needed
4444
# could be improved by using a temporary venv, but it's tiny and harmless
45-
if [[ $(python3 -c 'from importlib.util import find_spec; print(find_spec("build") is None)') == "True" ]]; then
45+
if [[ $(python -c 'from importlib.util import find_spec; print(find_spec("build") is None)') == "True" ]]; then
4646
pip install --user build
4747
fi
4848

4949
rm -r ../build
50-
python3 -m build --wheel --outdir dist/ ../.
50+
python -m build --wheel --outdir dist/ ../.
5151

5252
# ----------------------
5353

0 commit comments

Comments
 (0)