Skip to content

Commit 10422cd

Browse files
committed
dietpi-software: update Python deps
Also conditions are strictly ordered by architecture ID now.
1 parent 3959129 commit 10422cd

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

dietpi/dietpi-software

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,38 +2580,38 @@ sudo sysctl -p /etc/sysctl.d/dietpi-$1.conf"
25802580
'--rust'|'-r') rust=1;;
25812581
'--no-piwheels'|'-P') piwheels=0;;
25822582
'av') (( $G_HW_ARCH < 3 || $G_HW_ARCH == 11 )) && aDEPS+=('libavdevice-dev');;
2583-
'bcrypt') (( $G_HW_ARCH == 11 || ( $G_HW_ARCH == 1 && ! $piwheels ) )) && rust=1;;
2584-
'brotli'|'sabctools') (( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ! $piwheels ) )) && aDEPS+=('g++');;
2585-
'cffi') (( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ! $piwheels ) )) && aDEPS+=('gcc' 'libffi-dev');;
2583+
'bcrypt') (( ( $G_HW_ARCH == 1 && ! $piwheels ) || $G_HW_ARCH == 11 )) && rust=1;;
2584+
'brotli'|'sabctools') (( ( $G_HW_ARCH < 3 && ! $piwheels ) || $G_HW_ARCH == 11 )) && aDEPS+=('g++');;
2585+
'cffi') (( ( $G_HW_ARCH < 3 && ! $piwheels ) || $G_HW_ARCH == 11 )) && aDEPS+=('gcc' 'libffi-dev');;
25862586
'cryptography')
2587-
if (( $G_HW_ARCH == 1 || $G_HW_ARCH == 11 ))
2587+
if (( ( $G_HW_ARCH == 1 && ! $piwheels ) || $G_HW_ARCH == 11 ))
25882588
then
25892589
aDEPS+=('pkg-config' 'libssl-dev')
25902590
rust=1
25912591
fi
25922592
set -- "$@" cffi
25932593
;;
2594-
'greenlet113') (( $python_version > 311 || $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ! $piwheels ) )) && aDEPS+=('g++');;
2595-
'isal') (( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ! $piwheels ) )) && aDEPS+=('make');;
2596-
'libsass') (( $G_HW_ARCH == 10 || $piwheels )) || aDEPS+=('g++');;
2594+
'greenlet113') (( $python_version > 311 || ( $G_HW_ARCH < 3 && ! $piwheels ) || $G_HW_ARCH == 11 )) && aDEPS+=('g++');;
2595+
'isal') (( ( $G_HW_ARCH < 3 && ! $piwheels ) || $G_HW_ARCH == 11 )) && aDEPS+=('make');;
2596+
'libsass') (( $piwheels || $G_HW_ARCH == 10 )) || aDEPS+=('g++');;
25972597
'lxml') (( $G_HW_ARCH == 1 && ( ! $piwheels || $python_version != 311 ) )) && aDEPS+=('libxslt1-dev');;
25982598
'matrix-synapse')
25992599
(( $G_HW_ARCH < 3 || $G_HW_ARCH == 11 )) && rust=1
26002600
sed -- "$@" bcrypt cryptography pillow pynacl
26012601
;;
26022602
'netifaces') (( $piwheels )) || aDEPS+=('gcc');;
26032603
'numpy')
2604-
if (( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ( ! $piwheels || $python_version != 311 ) ) ))
2604+
if (( ( $G_HW_ARCH < 3 && ! $piwheels ) || $G_HW_ARCH == 11 ))
26052605
then
26062606
aDEPS+=('g++' 'pkg-config' 'libopenblas-pthread-dev')
26072607
# cmake + make + automake > patchelf > meson-python > numpy
26082608
# cmake > ninja > meson-python > numpy
26092609
(( $G_HW_ARCH == 1 )) && aDEPS+=('cmake' 'make' 'automake')
26102610
fi
2611-
(( $piwheels && $python_version == 311 )) && aDEPS+=('libgfortran5' 'libopenblas0-pthread')
2611+
(( $piwheels )) && aDEPS+=('libgfortran5' 'libopenblas0-pthread')
26122612
;;
26132613
'pillow')
2614-
(( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ( ! $piwheels || $python_version != 311 ) ) )) && aDEPS+=('gcc' 'libjpeg62-turbo-dev' 'zlib1g-dev')
2614+
(( ( $G_HW_ARCH < 3 && ( ! $piwheels || $python_version != 311 ) ) || $G_HW_ARCH == 11 )) && aDEPS+=('gcc' 'libjpeg62-turbo-dev' 'zlib1g-dev')
26152615
(( $piwheels && $python_version == 311 )) && aDEPS+=('libopenjp2-7' 'libtiff6' 'libxcb1')
26162616
;;
26172617
'poetry')
@@ -2620,8 +2620,8 @@ sudo sysctl -p /etc/sysctl.d/dietpi-$1.conf"
26202620
;;
26212621
'psutil') (( $G_HW_ARCH < 3 || $G_HW_ARCH == 11 )) && aDEPS+=('gcc');;
26222622
'psycopg2') (( $piwheels )) || aDEPS+=('gcc' 'libpq-dev');;
2623-
'pycares') (( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ! $piwheels ) )) && aDEPS+=('cmake');;
2624-
'pycurl') (( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ! $piwheels ) )) && aDEPS+=('gcc' 'libcurl4-openssl-dev' 'libssl-dev');;
2623+
'pycares') (( ( $G_HW_ARCH < 3 && ! $piwheels ) || $G_HW_ARCH == 11 )) && aDEPS+=('cmake');;
2624+
'pycurl') (( ( $G_HW_ARCH < 3 && ! $piwheels ) || $G_HW_ARCH == 11 )) && aDEPS+=('gcc' 'libcurl4-openssl-dev' 'libssl-dev');;
26252625
'pydantic')
26262626
# pydantic_core > pydantic
26272627
(( $G_HW_ARCH == 1 || $G_HW_ARCH == 11 )) && rust=1
@@ -2636,10 +2636,10 @@ sudo sysctl -p /etc/sysctl.d/dietpi-$1.conf"
26362636
;;
26372637
'pymicro-vad') aDEPS+=('g++');;
26382638
'pynacl')
2639-
(( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ! $piwheels ) )) && aDEPS+=('make')
2639+
(( ( $G_HW_ARCH < 3 && ! $piwheels ) || $G_HW_ARCH == 11 )) && aDEPS+=('make')
26402640
set -- "$@" cffi
26412641
;;
2642-
'ujson') (( $G_HW_ARCH == 11 || ( $G_HW_ARCH < 3 && ( ! $piwheels || $python_version != 311 ) ) )) && aDEPS+=('g++');;
2642+
'ujson') (( ( $G_HW_ARCH < 3 && ( ! $piwheels || $python_version != 311 ) ) || $G_HW_ARCH == 11 )) && aDEPS+=('g++');;
26432643
*) G_DIETPI-NOTIFY 1 "Unknown argument \"$1\" for Python_Deps(). This should never happen unless you are developing a software implementation. Otherwise, please report this at https://github.com/MichaIng/DietPi/issues. Aborting ..."; exit 1;;
26442644
esac
26452645
shift

0 commit comments

Comments
 (0)