aboutsummaryrefslogtreecommitdiff
path: root/ldcg-python-manylinux-tensorflow/ansible/roles/tensorflow_text/tasks/build_wheel.yml
blob: e667fc42fa8a45fd9af0397916c81b0cd56d105b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Create virtualenv for Python {{ python_version }}
  ansible.builtin.include_tasks:
    file: virtualenv.yml

- name: Create wheel build script from template
  ansible.builtin.template:
    src: "build_tf_text_wheels.sh.j2"
    dest: "{{ build_dir }}/scripts/build_tf_text_wheels.sh"
    mode: "755"
    force: true

- name: Build TensorFlow Text wheels for Python {{ python_version }}  # noqa no-changed-when
  community.docker.docker_container_exec:
    container: "tf-text-multipython"
    command: /bin/bash -c /tmp/workspace/scripts/build_tf_text_wheels.sh
    chdir: "/tmp/workspace"