File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments