metalsmith/playbooks/integration/initial-setup.yaml
Takashi Kajinami c02d2f8c73 Drop SETUPTOOLS_USE_DISTUTILS=stdlib
This requires distutils which was removed from the core python and
was moved to setuptools in Python 3.12 . The original issue with
setuptools was resolved so we no longer need this workaround.

Change-Id: I205536eca373cd0ef077d1448d49c7ade1d2ae91
2024-10-10 12:53:15 +09:00

30 lines
899 B
YAML

---
- hosts: all
roles:
- run-devstack
tasks:
- set_fact:
metalsmith_src_dir: '{{ ansible_user_dir }}/src/opendev.org/openstack'
# https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9
- name: Mark the metalsmith as safe for git
command: git config --global --add safe.directory "{{ metalsmith_src_dir }}/metalsmith"
become: true
- name: Install requirements for metalsmith
pip:
requirements: "{{ metalsmith_src_dir }}/metalsmith/requirements.txt"
extra_args: -c {{ metalsmith_src_dir }}/requirements/upper-constraints.txt
become: true
vars:
ansible_python_interpreter: /usr/bin/python3
- name: Install metalsmith
pip:
name: "{{ metalsmith_src_dir }}/metalsmith"
editable: true
become: true
vars:
ansible_python_interpreter: /usr/bin/python3