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 4
4
5
5
cd " $( dirname " $0 " ) "
6
6
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)" )
15
15
PATCH=" "
16
16
VERSION=" v${VERSION}${PATCH} "
17
17
LATEST_TAG=" v3-latest"
@@ -42,12 +42,12 @@ echo Building the wheel
42
42
43
43
# install the 'build' package in the user site packages, if needed
44
44
# 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
46
46
pip install --user build
47
47
fi
48
48
49
49
rm -r ../build
50
- python3 -m build --wheel --outdir dist/ ../.
50
+ python -m build --wheel --outdir dist/ ../.
51
51
52
52
# ----------------------
53
53
You can’t perform that action at this time.
0 commit comments