Skip to content

Commit 4312b80

Browse files
Merge pull request #10 from lightspeedretail/local-pip-install
Installing pip using a local whl file (super hardcore, but at least w…
2 parents aca9a19 + 7458f69 commit 4312b80

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
1.45 MB
Binary file not shown.

recipes/python.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
virtualenv_version false
1515
end
1616

17-
remote_file '/tmp/get-pip.py' do
18-
source 'https://bootstrap.pypa.io/pip/2.7/get-pip.py'
19-
action :create
17+
cookbook_file '/tmp/pip-20.3.4-py2.py3-none-any.whl' do
18+
source 'pip-20.3.4-py2.py3-none-any.whl'
19+
owner 'root'
20+
group 'root'
21+
mode '0444'
22+
action :create
2023
end
2124

22-
python_execute '/tmp/get-pip.py --trusted-host=files.pythonhosted.org --trusted-host=pypi.org' do
25+
python_execute '/tmp/pip-20.3.4-py2.py3-none-any.whl/pip install --no-index pip-20.3.4-py2.py3-none-any.whl' do
2326
python '2'
2427
end

0 commit comments

Comments
 (0)