-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython27.rb
More file actions
56 lines (45 loc) · 1.26 KB
/
python27.rb
File metadata and controls
56 lines (45 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# vim: set ts=2 sts=2 sw=2 et:
class Python27 < FPM::Cookery::Recipe
description 'Python Programming Language. Version 2.7'
homepage 'http://www.python.org/'
name 'python27'
version '2.7.9'
revision 0
source 'https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz'
sha256 'c8bba33e66ac3201dabdc556f0ea7cfe6ac11946ec32d357c4c6f9b018c12c5b'
maintainer '<zaa@ikato.com>'
license 'https://docs.python.org/2/license.html'
section 'Interpreters'
platforms [:fedora, :redhat, :centos] do
build_depends 'bzip2-devel',
'gdbm-devel',
'sqlite-devel',
'libxml2-devel',
'ncurses-devel',
'readline-devel',
'openssl-devel'
depends 'zlib',
'bzip2',
'libxml2',
'gdbm',
'sqlite',
'ncurses',
'readline'
end
platforms [:fedora] do
depends.push('openssl-libs')
end
platforms [:redhat, :centos] do
depends.push('openssl')
end
def build
configure :prefix => destdir
make
end
def install
# install Python
make :install
# install pip
cleanenv_safesystem "#{destdir}/bin/python -m ensurepip"
end
end