New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GODRIVER-1911 Pass PYTHON variable to set-temp-creds.sh #603
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,8 +75,7 @@ functions: | |
if [ "Windows_NT" = "$OS" ]; then | ||
mkdir -p c:/libmongocrypt/include | ||
mkdir -p c:/libmongocrypt/bin | ||
# TODO: After a stable libmongocrypt 1.1.0 is released in MONGOCRYPT-293, update this URL to: https://s3.amazonaws.com/mciuploads/libmongocrypt/windows/latest_release/libmongocrypt.tar.gz | ||
curl https://s3.amazonaws.com/mciuploads/libmongocrypt/windows/latest_release/libmongocrypt_unstable.tar.gz --output libmongocrypt.tar.gz | ||
curl https://s3.amazonaws.com/mciuploads/libmongocrypt/windows/latest_release/libmongocrypt.tar.gz --output libmongocrypt.tar.gz | ||
tar -xvzf libmongocrypt.tar.gz | ||
cp ./bin/mongocrypt.dll c:/libmongocrypt/bin | ||
cp ./include/mongocrypt/*.h c:/libmongocrypt/include | ||
|
@@ -304,6 +303,15 @@ functions: | |
export AWS_SECRET_ACCESS_KEY="${cse_aws_secret_access_key}" | ||
export AWS_DEFAULT_REGION="us-east-1" | ||
${PYTHON3_BINARY} -m venv ./venv | ||
|
||
# Set the PYTHON environment variable to point to the active python3 binary. This is used by the | ||
# set-temp-creds.sh script. | ||
if [ "Windows_NT" = "$OS" ]; then | ||
export PYTHON="$(pwd)/venv/Scripts/python" | ||
else | ||
export PYTHON="$(pwd)/venv/bin/python" | ||
fi | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally, we'd combine the virtual environment creation, python3 binary setting, and boto3 installation into a single call to activate_venv.sh.. But, that unfortunately sets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yep, that too. |
||
./venv/${VENV_BIN_DIR|bin}/pip3 install boto3 | ||
. ${DRIVERS_TOOLS}/.evergreen/csfle/set-temp-creds.sh | ||
fi | ||
|
@@ -476,6 +484,14 @@ functions: | |
export AWS_DEFAULT_REGION="us-east-1" | ||
${PYTHON3_BINARY} -m venv ./venv | ||
./venv/${VENV_BIN_DIR|bin}/pip3 install boto3 | ||
|
||
# Set the PYTHON environment variable to point to the active python3 binary. This is used by the | ||
# set-temp-creds.sh script. | ||
if [ "Windows_NT" = "$OS" ]; then | ||
export PYTHON="$(pwd)/venv/Scripts/python" | ||
else | ||
export PYTHON="$(pwd)/venv/bin/python" | ||
fi | ||
. ${DRIVERS_TOOLS}/.evergreen/csfle/set-temp-creds.sh | ||
|
||
export GOFLAGS=-mod=vendor | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks like there was a TODO all along.