diff options
Diffstat (limited to 'playbooks/zuul-stream/pre.yaml')
-rw-r--r-- | playbooks/zuul-stream/pre.yaml | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/playbooks/zuul-stream/pre.yaml b/playbooks/zuul-stream/pre.yaml index 63cad9d04..9753fab85 100644 --- a/playbooks/zuul-stream/pre.yaml +++ b/playbooks/zuul-stream/pre.yaml @@ -9,20 +9,38 @@ post_tasks: - - name: Install software + - name: Setup 2.7 container environment + include_tasks: 2.7-container.yaml + + - name: Setup inventory + include_tasks: create-inventory.yaml + + - name: Install pip shell: |+ python3 -m pip install --upgrade pip setuptools wheel - python3 -m pip install src/opendev.org/zuul/zuul + become: yes + + - name: Build wheel + shell: + chdir: src/opendev.org/zuul/zuul + cmd: |+ + python3 setup.py bdist_wheel + + - name: Install software + shell: |+ + python3 -m pip install src/opendev.org/zuul/zuul/dist/*.whl become: yes - name: Install managed ansible versions command: /usr/local/bin/zuul-manage-ansible -v become: yes - - - name: Copy inventory - copy: - src: "{{ zuul.executor.log_root }}/zuul-info/inventory.yaml" - dest: "{{ ansible_user_dir }}/inventory.yaml" + environment: + # This appears to be necessary because without it the virtualenvs + # that virtualenv creates are not actually virtualenvs. They are just + # aliases for the root python installation instead. Then we try to + # install multiple ansible versions to the root (via multiple fake + # venvs) and the installation fails due to conflicts. + SETUPTOOLS_USE_DISTUTILS: stdlib - name: Copy ansible.cfg template: |