Skip to content

Commit 8b93ce2

Browse files
stankiewiczVardhanThigle
authored andcommitted
fix activate (apache#33839)
1 parent 8da8292 commit 8b93ce2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdks/java/container/license_scripts/license_script.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ echo "Copying already-fetched licenses from ${EXISTING_LICENSE_DIR} to ${DOWNLOA
3939
if [ -d "$DOWNLOAD_DIR" ]; then rm -rf "$DOWNLOAD_DIR" ; fi
4040
mkdir -p "$DOWNLOAD_DIR"
4141
cp -r "${EXISTING_LICENSE_DIR}"/*.jar "${DOWNLOAD_DIR}"
42-
43-
$PYTHON -m venv --clear ${ENV_DIR} && . ${ENV_DIR}/bin/activate
44-
pip install --retries 10 --upgrade pip setuptools wheel
42+
python -m venv --clear ${ENV_DIR} --without-pip --system-site-packages
43+
. ${ENV_DIR}/bin/activate
44+
python -m pip install --retries 10 --upgrade pip setuptools wheel
4545

4646
# install packages
47-
pip install --retries 10 -r ${SCRIPT_DIR}/requirement.txt
47+
python -m pip install --retries 10 -r ${SCRIPT_DIR}/requirement.txt
4848

4949
# pull licenses, notices and source code
5050
FLAGS="--license_index=${INDEX_FILE} \

0 commit comments

Comments
 (0)