install-python.sh 468 B

1234567891011121314
  1. #!/bin/bash
  2. set -euo pipefail
  3. # Copyright (c) Contributors to the Open 3D Engine Project.
  4. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. #
  6. # SPDX-License-Identifier: Apache-2.0 OR MIT
  7. #
  8. PY3_VERSION="3.10.13"
  9. echo "Installing Python ${PY3_VERSION}"
  10. brew install python@${PY3_VERSION} || echo "Installation failed!"; exit 1
  11. cat ../common/requirements.txt | cut -f1 -d"#" | sed '/^\s*$/d' | xargs -n 1 pip3 install