Skip to content

Commit

Permalink
Add workaround for the "setup_python" recipe after pip release 18.1
Browse files Browse the repository at this point in the history
The setup_python recipe doesn't work with the latest version of pip
18.1 https://pypi.org/project/pip/18.1/#history
Issue is open at poise/poise-python#133
The workaround consists in overriding pip version to 18.0

Signed-off-by: Luca Carrogu <carrogu@amazon.com>
  • Loading branch information
lukeseawalker committed Oct 11, 2018
1 parent 0495ba1 commit 31693ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions recipes/_setup_python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,20 @@
PIP
end
else
edit_resource(:python_runtime, '2') do
# FIXME https://github.com/poise/poise-python/issues/133
pip_version '18.0'
end
python_runtime '2' do
version '2'
provider :system
end
end
when 'debian'
edit_resource(:python_runtime, '2') do
# FIXME https://github.com/poise/poise-python/issues/133
pip_version '18.0'
end
python_runtime '2' do
version '2'
provider :system
Expand Down

0 comments on commit 31693ff

Please sign in to comment.