File tree 4 files changed +10
-2
lines changed
4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 21
21
default [ 'python' ] [ 'install_method' ] = 'package'
22
22
23
23
if python [ 'install_method' ] == 'package'
24
- default [ 'python' ] [ 'prefix_dir' ] = '/usr'
24
+ case platform
25
+ when "smartos"
26
+ default [ 'python' ] [ 'prefix_dir' ] = '/opt/local'
27
+ else
28
+ default [ 'python' ] [ 'prefix_dir' ] = '/usr'
29
+ end
25
30
else
26
31
default [ 'python' ] [ 'prefix_dir' ] = '/usr/local'
27
32
end
Original file line number Diff line number Diff line change 14
14
recipe "python::pip" , "Installs pip from source."
15
15
recipe "python::virtualenv" , "Installs virtualenv using the python_pip resource."
16
16
17
- %w{ debian ubuntu centos redhat fedora freebsd } . each do |os |
17
+ %w{ debian ubuntu centos redhat fedora freebsd smartos } . each do |os |
18
18
supports os
19
19
end
Original file line number Diff line number Diff line change 31
31
"debian" => [ "python" , "python-dev" ] ,
32
32
"rhel" => [ "python" , "python-devel" ] ,
33
33
"freebsd" => [ "python" ] ,
34
+ "smartos" => [ "python27" ] ,
34
35
"default" => [ "python" , "python-dev" ]
35
36
)
36
37
end
Original file line number Diff line number Diff line change 20
20
21
21
if platform_family? ( "rhel" )
22
22
pip_binary = "/usr/bin/pip"
23
+ elsif platform_family? ( "smartos" )
24
+ pip_binary = "/opt/local/bin/pip"
23
25
else
24
26
pip_binary = "/usr/local/bin/pip"
25
27
end
You can’t perform that action at this time.
0 commit comments