File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 44
55cd " $( 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 ..; python -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 ..; python3 -c " from invokeai.version import __version__ as version; print(version)" )
1515PATCH=" "
1616VERSION=" v${VERSION}${PATCH} "
1717LATEST_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 [[ $( python -c ' from importlib.util import find_spec; print(find_spec("build") is None)' ) == " True" ]]; then
45+ if [[ $( python3 -c ' from importlib.util import find_spec; print(find_spec("build") is None)' ) == " True" ]]; then
4646 pip install --user build
4747fi
4848
4949rm -r ../build
50- python -m build --wheel --outdir dist/ ../.
50+ python3 -m build --wheel --outdir dist/ ../.
5151
5252# ----------------------
5353
You can’t perform that action at this time.
0 commit comments