File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/Debian/common/DEBIAN Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,14 @@ install_pip3_packages () {
125
125
PYTHON_MAJOR=$( echo " $PYTHON_VERSION " | cut -d. -f1)
126
126
PYTHON_MINOR=$( echo " $PYTHON_VERSION " | cut -d. -f2)
127
127
128
- FLAG=" "
129
- # Set the FLAG only for Python versions 3.11 or higher
130
- if [ " $PYTHON_MAJOR " -gt 3 ] || { [ " $PYTHON_MAJOR " -eq 3 ] && [ " $PYTHON_MINOR " -ge 11 ]; }; then
128
+ if [ " $PYTHON_MAJOR " -eq 3 ] && [ " $PYTHON_MINOR " -ge 11 ] && [ " $PYTHON_MINOR " -lt 12 ]; then
131
129
FLAG=" --break-system-packages"
130
+ elif [ " $PYTHON_MAJOR " -eq 3 ] && [ " $PYTHON_MINOR " -ge 12 ]; then
131
+ FLAG=" --ignore-installed --break-system-packages"
132
+ else
133
+ # Default to empty flag
134
+ FLAG=" "
132
135
fi
133
-
134
136
# Install pip and packages with or without the flag
135
137
python3 -m pip install --upgrade pip $FLAG
136
138
python3 -m pip install -r /usr/local/fledge/python/requirements.txt $FLAG
You can’t perform that action at this time.
0 commit comments