Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0ba4aa

Browse files
Joshua Timbermanjtimberman
Joshua Timberman
authored and
jtimberman
committed
Add python cookbook
0 parents  commit e0ba4aa

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

recipes/default.rb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# Cookbook Name:: python
3+
# Recipe:: default
4+
#
5+
# Copyright 2009, Opscode, Inc.
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
package "python" do
20+
action :install
21+
end
22+
23+
%w{
24+
dev imaging matplotlib matplotlib-data matplotlib-doc mysqldb
25+
numpy numpy-ext paramiko scipy setuptools sqlite
26+
}.each do |pkg|
27+
package pkg do
28+
action :install
29+
end
30+
end
31+
32+
bash "install-nltk" do
33+
not_if do File.exists?("/usr/lib/python2.5/site-packages/nltk-0.9.8.egg-info")
34+
pwd "/tmp"
35+
code <<-EOH
36+
wget http://nltk.googlecode.com/files/nltk-0.9.8.zip
37+
cd nltk-0.9.8
38+
python setup.py install
39+
EOH
40+
end

0 commit comments

Comments
 (0)