Skip to content

Commit

Permalink
Properly set an older psutil version to build on generic Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumol committed Aug 1, 2024
1 parent 4abf06c commit 8f0df95
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions chevah_build
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SQLITE_VERSION="3.46.0"
# Python modules versions to be used everywhere possible.
PYSQLITE_VERSION="2.8.3"
SCANDIR_VERSION="1.10.0"
# An older version is used on generic Linux to have it built on CentOS 5.
PSUTIL_VERSION="6.0.0"
SUBPROCESS32_VERSION="3.5.4"

Expand Down Expand Up @@ -331,8 +332,16 @@ case $OS in
export PATH="/usr/local/bin:$PATH"
# In particular, Perl's Test::Simple and its deps are required.
execute perl -MTest::Simple -e 1
# Version 5.9.8 and newer can't build on RHEL 5 and clones.
PSUTIL_VERSION="5.9.6"
# Version 6.0.0 of psutil can't build on RHEL 5 and clones.
PIP_LIBRARIES="\
cryptography==${CRYPTOGRAPHY_VERSION} \
pyOpenSSL==${PYOPENSSL_VERSION} \
scandir==${SCANDIR_VERSION} \
subprocess32==${SUBPROCESS32_VERSION} \
bcrypt==${BCRYPT_VERSION} \
psutil==5.9.8 \
setproctitle==${SETPROCTITLE_VERSION}
"
;;
*)
# Only supported Linux distributions should be left.
Expand Down

0 comments on commit 8f0df95

Please sign in to comment.