- name: Create Netron virtual environment
  command:
    argv:
      - "{{ courseware_python_bin }}"
      - -m
      - venv
      - "{{ courseware_netron_venv_dir }}"
  args:
    creates: "{{ courseware_netron_venv_dir }}/bin/python"

- name: Upgrade Netron venv tooling
  command:
    argv:
      - "{{ courseware_netron_venv_dir }}/bin/python"
      - -m
      - pip
      - install
      - --upgrade
      - pip
      - setuptools
      - wheel

- name: Install Netron server runtime
  command:
    argv:
      - "{{ courseware_netron_venv_dir }}/bin/python"
      - -m
      - pip
      - install
      - "netron=={{ courseware_netron_version }}"
