Skip to content

Commit 37978de

Browse files
committed
Add workaround for the "setup_python" recipe after pip release 18.1
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 <[email protected]>
1 parent 0495ba1 commit 37978de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

recipes/_setup_python.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,20 @@
2525
PIP
2626
end
2727
else
28+
edit_resource(:python_runtime, '2') do
29+
# FIXME: https://github.com/poise/poise-python/issues/133
30+
pip_version '18.0'
31+
end
2832
python_runtime '2' do
2933
version '2'
3034
provider :system
3135
end
3236
end
3337
when 'debian'
38+
edit_resource(:python_runtime, '2') do
39+
# FIXME: https://github.com/poise/poise-python/issues/133
40+
pip_version '18.0'
41+
end
3442
python_runtime '2' do
3543
version '2'
3644
provider :system

0 commit comments

Comments
 (0)