File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -52,30 +52,29 @@ RUN_IGNORE gobject-introspection libffi pkg-config
52
52
RUN_IGNORE brew install gstreamer
53
53
54
54
ARCH=$( arch)
55
- # this is no longer necessary since tflite uses portable python.
56
- # if [ "$ARCH" = "arm64" ]
57
- # then
58
- # PYTHON_VERSION=3.10
59
- # else
60
- # PYTHON_VERSION=3.9
61
- # fi
62
- PYTHON_VERSION=3
55
+ if [ " $ARCH " = " arm64" ]
56
+ then
57
+ PYTHON_VERSION=3.10
58
+ else
59
+ PYTHON_VERSION=3.9
60
+ fi
63
61
64
62
RUN_IGNORE brew install python@$PYTHON_VERSION
65
- # will return /opt/homebrew/opt/[email protected] or similar
66
63
PYTHON_PATH=$( brew --prefix python@$PYTHON_VERSION )
67
64
PYTHON_BIN_PATH=
68
65
SCRYPTED_PYTHON_PATH=
69
66
if [ -d " $PYTHON_PATH " ]
70
67
then
71
- # strip off the versioned path from above, and use brew bin path directly in case user updates python version.
72
- PYTHON_BIN_PATH=$( brew --prefix) /bin
73
- PYTHON_PATH=$PYTHON_BIN_PATH /python$PYTHON_VERSION
68
+ PYTHON_BIN_PATH=$PYTHON_PATH /bin
74
69
export PATH=$PYTHON_BIN_PATH :$PATH
75
70
export SCRYPTED_PYTHON_PATH=python$PYTHON_VERSION
76
71
fi
77
72
78
73
RUN python$PYTHON_VERSION -m pip install --upgrade pip
74
+ if [ " $PYTHON_VERSION " != " 3.10" ]
75
+ then
76
+ RUN python$PYTHON_VERSION -m pip install typing
77
+ fi
79
78
RUN python$PYTHON_VERSION -m pip install debugpy typing_extensions opencv-python psutil
80
79
81
80
echo " Installing Scrypted Launch Agent..."
You can’t perform that action at this time.
0 commit comments