From c6ecdf735c79bce5d2b0ff3d4e8aebd6991f57d0 Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Mon, 23 Aug 2021 12:09:40 +0500 Subject: [PATCH] BOM-2715: Update the post-pip-compile script (#28301) * update the post-pip-compile script to fix the py38.txt parsing for sandbox requirements. --- requirements/edx-sandbox/py38.txt | 4 ++-- scripts/post-pip-compile.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/requirements/edx-sandbox/py38.txt b/requirements/edx-sandbox/py38.txt index 6b069793eb..19e6db3c5c 100644 --- a/requirements/edx-sandbox/py38.txt +++ b/requirements/edx-sandbox/py38.txt @@ -4,9 +4,9 @@ # # make upgrade # --e common/lib/sandbox-packages +common/lib/sandbox-packages # via -r requirements/edx-sandbox/py38.in --e common/lib/symmath +common/lib/symmath # via -r requirements/edx-sandbox/py38.in cffi==1.14.6 # via cryptography diff --git a/scripts/post-pip-compile.sh b/scripts/post-pip-compile.sh index 5860261391..619d7951c7 100755 --- a/scripts/post-pip-compile.sh +++ b/scripts/post-pip-compile.sh @@ -28,7 +28,8 @@ function clean_file { # Code sandbox local package installs must be non-editable due to file # permissions issues. edxapp ones must stay editable until assorted # packaging bugs are fixed. - if [[ "${FILE_PATH}" == "requirements/edx-sandbox/py35.txt" ]]; then + if [[ "${FILE_PATH}" == "requirements/edx-sandbox/py35.txt" || + "${FILE_PATH}" == "requirements/edx-sandbox/py38.txt" ]]; then sed "s|-e common/lib/|common/lib/|" ${FILE_PATH} > ${TEMP_FILE} mv ${TEMP_FILE} ${FILE_PATH} fi