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 Aug 28, 2020
Merged
Conversation
Remove use of easy_install which is now deprecated and not anymore installed per default on recent systems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_installis deprecated in favor ofpipand is not delivered by default anymore on most of distributions. Unfortunately we usedeasy_installto installpipitself. This change installpipusing distributions package managersWhat I did
Stop using
easy_installat 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
Applicable Issues
Fixes #131
Backport of #132