vp-build/helpers/python-module.sh
Juan RP 0fe4e35138 Added a helper for installing python modules.
To use it "build_style" must be set to "python-module", by default
--prefix=usr --root=$DESTDIR are passed as arguments to setup.py,
these can be overriden by using "make_install_args".

--HG--
extra : convert_revision : 91b191d481dfff3c612da0621007ae1b1c7d33aa
2009-10-18 09:25:16 +02:00

15 lines
317 B
Bash

#
# This helper is for templates installing python modules.
#
do_install()
{
if [ -z "$make_install_args" ]; then
make_install_args="--prefix=usr --root=$DESTDIR"
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
}