Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

[Backport release/2.2] Fix pip installation failures for Consul#135

Merged
loicalbertin merged 4 commits intorelease/2.2from
backport22/bugfix/GH-131_python_setuptools_missing
Aug 28, 2020
Merged

[Backport release/2.2] Fix pip installation failures for Consul#135
loicalbertin merged 4 commits intorelease/2.2from
backport22/bugfix/GH-131_python_setuptools_missing

Conversation

@loicalbertin
Copy link
Member

@loicalbertin loicalbertin commented Aug 28, 2020

Pull Request description

This is a back-port of #132
For the sake of simplicity this PR is based on PR #134 that should be merged first

Fix Consul installation issue
Remove use of easy_install which is now deprecated
and not anymore installed per default on recent systems

Description of the change

Python easy_install is deprecated in favor of pip and is not delivered by default anymore on most of distributions. Unfortunately we used easy_install to install pip itself. This change install pip using distributions package managers

What I did

Stop using easy_install at all (do not even try to install it). Determine if we are running Python 2 or 3 and install the corresponding package.

How to verify it

On GCP you can test to deploy a consul server with different OS
Note that Ubuntu 20.04 is not supported with Ansible 2.7.9 (opened ystia/yorc#648 to track it)

Description for the changelog

  • Installation of Consul fails on recent Centos for GCP images (GH-131)

Applicable Issues

Fixes #131
Backport of #132

Remove use of easy_install which is now deprecated
and not anymore installed per default on recent systems
@loicalbertin loicalbertin changed the title [Backport release22] Fix pip installation failures for Consul [Backport release/2.2] Fix pip installation failures for Consul Aug 28, 2020
Copy link
Contributor

@laurentganne laurentganne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!

@loicalbertin loicalbertin merged commit 4fb5856 into release/2.2 Aug 28, 2020
@loicalbertin loicalbertin deleted the backport22/bugfix/GH-131_python_setuptools_missing branch August 28, 2020 07:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants