Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Python (0.2 sec)

  1. ci/official/containers/linux_arm64/setup.python.sh

    #
    # setup.python.sh: Install a specific Python version and packages for it.
    # Usage: setup.python.sh <pyversion> <requirements.txt>
    set -xe
    
    source ~/.bashrc
    VERSION=$1
    REQUIREMENTS=$2
    
    add-apt-repository ppa:deadsnakes/ppa
    # Install Python packages for this container's version
    cat >pythons.txt <<EOF
    $VERSION
    $VERSION-dev
    $VERSION-venv
    $VERSION-distutils
    EOF
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Sep 29 00:26:34 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  2. configure

    #!/usr/bin/env bash
    
    set -e
    set -o pipefail
    
    if [ -z "$PYTHON_BIN_PATH" ]; then
      PYTHON_BIN_PATH=$(which python3 || which python || true)
    fi
    
    # Set all env variables
    CONFIGURE_DIR=$(dirname "$0")
    "$PYTHON_BIN_PATH" "${CONFIGURE_DIR}/configure.py" "$@"
    
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Apr 12 14:04:24 GMT 2020
    - 285 bytes
    - Viewed (1)
  3. ci/official/containers/linux_arm64/devel.usertools/setup_venv_test.sh

    # 
    # This will create a venv with that wheel file installed in it, and a symlink
    # in ./venv_and_symlink_name/tensorflow to ./tensorflow. We use this for the
    # "pip" tests.
    
    python -m venv /$1
    mkdir -p $1
    rm -f ./$1/tensorflow
    ln -s $(ls /$1/lib) /$1/lib/python3
    ln -s ../tensorflow $1/tensorflow
    # extglob is necessary for @(a|b) pattern matching
    # see "extglob" in the bash manual page ($ man bash)
    bash -O extglob -c "/$1/bin/pip install $2"
    Shell Script
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  4. ci/official/utilities/get_versions.sh

    #
    # These variables aren't available by default. Scripts must source this file
    # explicitly, *after* checking if update_version.py needs to be run for a
    # nightly job. update_version.py affects TF_VER_SUFFIX, TF_VER_PYTHON, and
    # TF_VER_FULL.
    
    # Note: in awk, the command '/search/ {commands}' applies the commands to any line that
    # matches the /search/ regular expression. "print $N" prints the Nth "field",
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 10 19:39:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. ci/official/utilities/rename_and_verify_wheels.sh

      exit 2
    fi
    
    # Quick install checks
    venv=$(mktemp -d)
    "python${TFCI_PYTHON_VERSION}" -m venv "$venv"
    python="$venv/bin/python3"
    "$python" -m pip install *.whl $TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS
    if [[ "$TFCI_WHL_IMPORT_TEST_ENABLE" == "1" ]]; then
      "$python" -c 'import tensorflow as tf; t1=tf.constant([1,2,3,4]); t2=tf.constant([5,6,7,8]); print(tf.add(t1,t2).shape)'
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 21:16:27 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  6. ci/official/utilities/setup_macos.sh

      # Install the necessary Python, unless it's already present
      pyenv install -s "$TFCI_PYTHON_VERSION"
      pyenv local "$TFCI_PYTHON_VERSION"
      # Do a sanity check to make sure that we using the correct Python version
      python --version
    fi
    
    # TFCI Mac VM images do not have twine installed by default so we need to
    # install it manually. We use Twine in nightly builds to upload Python packages
    # to PyPI.
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 15:23:28 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. ci/official/containers/linux_arm64/setup.sources.sh

    # limitations under the License.
    # ==============================================================================
    #
    # setup.python.sh: Install a specific Python version and packages for it.
    # Usage: setup.python.sh <pyversion> <requirements.txt>
    
    # Sets up custom apt sources for our TF images.
    
    # Prevent apt install tzinfo from asking our location (assumes UTC)
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  8. ci/official/wheel_test/update_requirements.sh

    # -o history: record shell history
    set -euo pipefail -o history
    
    # Check for required arguments
    if [ -z "$1" ]; then
      echo "Usage: $0 <path_to_tensorflow_wheel> <python_version>"
      exit 1
    fi
    
    TENSORFLOW_WHEEL_PATH="$1"
    PYTHON_VERSION="$2"
    
    # All commands run relative to this directory
    cd "$(dirname "${BASH_SOURCE[0]}")"
    cd ../requirements_updater || exit 1
    
    # Create the requirements_wheel_test.in file
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 31 18:17:57 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/builder.devtoolset/build_devtoolset.sh

    # system gcc paths that we do not want to find.
    # TODO(klimek): Automate linking in all non-gcc / non-kernel include
    # directories.
    mkdir -p "${TARGET}/usr/include/aarch64-linux-gnu"
    PYTHON_VERSIONS=("python3.8" "python3.9" "python3.10" "python3.11")
    for v in "${PYTHON_VERSIONS[@]}"; do
      ln -s "/usr/local/include/${v}" "${TARGET}/usr/include/aarch64-linux-gnu/${v}"
    Shell Script
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Fri Sep 29 00:26:34 GMT 2023
    - 6.1K bytes
    - Viewed (1)
  10. ci/official/containers/linux_arm64/build.sh

    # Builds the following Docker images for Linux ARM64. See the accompanying
    # Dockerfile for more details:
    # - gcr.io/tensorflow-sigs/build-arm64:jax-latest-multi-python
    # - gcr.io/tensorflow-sigs/build-arm64:tf-latest-multi-python
    
    set -exo pipefail
    
    function is_continuous_or_release() {
      [[ "$KOKORO_JOB_TYPE" == "CONTINUOUS_INTEGRATION" ]] || [[ "$KOKORO_JOB_TYPE" == "RELEASE" ]]
    }
    
    Shell Script
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Fri Nov 03 13:38:49 GMT 2023
    - 2.3K bytes
    - Viewed (0)
Back to top