Skip to content

Commit

Permalink
Fixing setuptools issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fao89 committed Sep 1, 2020
1 parent 44336f8 commit 69da01d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/pulp_common/tasks/install_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@
virtualenv: '{{ pulp_install_dir }}'
virtualenv_command: '{{ pulp_python_interpreter }} -m venv'
when: pulp_source_dir is undefined
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib
notify: Collect static content

- name: Install pulpcore package from source
Expand All @@ -157,6 +159,8 @@
virtualenv: '{{ pulp_install_dir }}'
virtualenv_command: '{{ pulp_python_interpreter }} -m venv'
when: pulp_source_dir is defined
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib
register: result
# This is a hack. Editable pip installs are always changed, which fails molecule's
# idempotence test.
Expand Down Expand Up @@ -192,6 +196,8 @@
virtualenv_command: '{{ pulp_python_interpreter }} -m venv'
with_dict: '{{ pulp_install_plugins_normalized }}'
when: item.value.source_dir is undefined
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib
notify: Collect static content

- name: Install Pulp plugins from source
Expand All @@ -206,6 +212,8 @@
virtualenv_command: '{{ pulp_python_interpreter }} -m venv'
with_dict: '{{ pulp_install_plugins_normalized }}'
when: item.value.source_dir is defined
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib
register: result
# This is a hack. Editable pip installs are always changed, which fails molecule's
# idempotence test.
Expand Down
2 changes: 2 additions & 0 deletions roles/pulp_devel/tasks/install_docs_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
virtualenv: '{{ pulp_install_dir }}'
virtualenv_command: '{{ pulp_python_interpreter }} -m venv'
when: pulp_source_dir is defined
environment:
SETUPTOOLS_USE_DISTUTILS: stdlib

- name: Install requirements for developer scripts
pip:
Expand Down

0 comments on commit 69da01d

Please sign in to comment.