Use /usr/local prefix for pythonsitedir on Ubuntu
This commit is contained in:
parent
97ca8107c0
commit
74e0a5827e
1 changed files with 6 additions and 1 deletions
|
@ -9,7 +9,12 @@ Facter.add('pythonsitedir') do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if pythonbin
|
if pythonbin
|
||||||
%x{#{pythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"}.chomp
|
case Facter.value(:operatingsystem)
|
||||||
|
when "Ubuntu"
|
||||||
|
%x{#{pythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(prefix='/usr/local')"}.chomp
|
||||||
|
else
|
||||||
|
%x{#{pythonbin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"}.chomp
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue