2009-10-18 07:25:16 +00:00
|
|
|
#
|
|
|
|
# This helper is for templates installing python modules.
|
|
|
|
#
|
|
|
|
|
2010-11-27 21:32:13 +00:00
|
|
|
do_build()
|
|
|
|
{
|
|
|
|
python setup.py build ${make_build_args} || return 1
|
|
|
|
}
|
|
|
|
|
2009-10-18 07:25:16 +00:00
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
if [ -z "$make_install_args" ]; then
|
2009-12-23 01:06:45 +00:00
|
|
|
make_install_args="--prefix=/usr --root=$DESTDIR"
|
2009-10-18 07:25:16 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cd ${wrksrc} || return 1
|
|
|
|
sed -i 's|man/man1|share/man/man1|g' setup.py || return 1
|
|
|
|
python setup.py install ${make_install_args} || return 1
|
|
|
|
}
|