From 2dff26c0fc9d08b185ab367112d6f230aef31d6a Mon Sep 17 00:00:00 2001 From: Aaditya Watwe <45186715+WatweA@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:36:44 -0700 Subject: [PATCH] Create a python installer for required deps --- Tools/environment_install/install-python.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 Tools/environment_install/install-python.sh diff --git a/Tools/environment_install/install-python.sh b/Tools/environment_install/install-python.sh new file mode 100755 index 0000000000..c9b34fc415 --- /dev/null +++ b/Tools/environment_install/install-python.sh @@ -0,0 +1,11 @@ +#/usr/bin/env bash +set -euxo pipefail + +PYTHON=$(which python) +echo "Installing all sub-libraries with $PYTHON" + +git submodule update --init --recursive +$PYTHON -m ensurepip +$PYTHON -m pip install --upgrade pip setuptools wheel +$PYTHON -m pip install --upgrade empy==3.3.4 pexpect +find . | egrep -v '/build/' | grep setup.py | xargs readlink -e | xargs dirname | xargs -I{} bash -c "pushd {} ; $PYTHON -m pip install . ; popd"