From 1ccdbf27e28f06cf9e2ef8c972bd72fbe796edb5 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Fri, 28 Apr 2023 17:56:46 +0530 Subject: [PATCH] Pin Sphinx version to 6.1.3 due to locale error. --- pkg/mac/build-functions.sh | 2 +- pkg/redhat/setup.sh | 6 +++--- tools/setup-python-env.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/mac/build-functions.sh b/pkg/mac/build-functions.sh index 3ecb8f993..bc69634e7 100644 --- a/pkg/mac/build-functions.sh +++ b/pkg/mac/build-functions.sh @@ -138,7 +138,7 @@ _build_docs() { source "${BUILD_ROOT}/venv/bin/activate" pip3 install --upgrade pip pip3 install -r "${SOURCE_DIR}/requirements.txt" - pip3 install sphinx + pip3 install sphinx==6.1.3 pip3 install sphinxcontrib-youtube cd "${SOURCE_DIR}" || exit diff --git a/pkg/redhat/setup.sh b/pkg/redhat/setup.sh index 2d2c784cb..689a2d0a6 100755 --- a/pkg/redhat/setup.sh +++ b/pkg/redhat/setup.sh @@ -39,15 +39,15 @@ yum groupinstall -y "Development Tools" if [ "${OS_VERSION}" == "8" ]; then yum install -y expect fakeroot postgresql15-devel python3.9-devel nodejs yarn rpm-build rpm-sign yum-utils krb5-devel - pip3.9 install sphinx + pip3.9 install sphinx==6.1.3 pip3.9 install sphinxcontrib-youtube elif [ "${OS_VERSION}" == "9" ]; then yum install -y expect libpq5-devel postgresql15-devel python3-devel nodejs yarn rpm-build rpm-sign yum-utils krb5-devel - pip3 install sphinx + pip3 install sphinx==6.1.3 pip3 install sphinxcontrib-youtube else yum install -y expect fakeroot postgresql15-devel python3-devel nodejs yarn rpm-build rpm-sign yum-utils krb5-devel - pip3 install sphinx + pip3 install sphinx==6.1.3 pip3 install sphinxcontrib-youtube fi diff --git a/tools/setup-python-env.sh b/tools/setup-python-env.sh index 772fe424d..20e7028cc 100755 --- a/tools/setup-python-env.sh +++ b/tools/setup-python-env.sh @@ -18,8 +18,8 @@ pip install --upgrade pip if [ ${TEST} -eq 1 ]; then echo Installing requirements for running Python tests... - pip install --no-cache-dir wheel sphinx sphinxcontrib-youtube -r web/regression/requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; } + pip install --no-cache-dir wheel sphinx==6.1.3 sphinxcontrib-youtube -r web/regression/requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; } else echo Installing requirements for executing and building only... - pip install --no-cache-dir wheel sphinx sphinxcontrib-youtube -r requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; } + pip install --no-cache-dir wheel sphinx==6.1.3 sphinxcontrib-youtube -r requirements.txt || { echo 'ERROR: Failed to install Python requirements.' ; exit 1; } fi