While trying to create binary for the PAG, I get into errors. When I run "setup-environment.sh" in debug mode (bash -x), I see that it usages default Python version on the instance (python 3.9 in case of Amazon Linux 2023) even if a newer python version (3.11) is available in PATH.
Description of change
//: # Added a code block in setup-environment.sh file to list available python version in PATH and loop through each of it, check if it's version is >=3.10 and use that that as python binary in rest of the script. If none of the python version is >=3.10, throw error.
While trying to create binary for the PAG, I get into errors. When I run "setup-environment.sh" in debug mode (bash -x), I see that it usages default Python version on the instance (python 3.9 in case of Amazon Linux 2023) even if a newer python version (3.11) is available in PATH.
Description of change
//: # Added a code block in
setup-environment.sh
file to list available python version in PATH and loop through each of it, check if it's version is >=3.10 and use that that as python binary in rest of the script. If none of the python version is >=3.10, throw error.Issue
PR reviewer notes
//: # NA
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.