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
This commit is contained in:
parent
48ff77d3aa
commit
0fe4e35138
1 changed files with 14 additions and 0 deletions
14
helpers/python-module.sh
Normal file
14
helpers/python-module.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#
|
||||
# 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
|
||||
}
|
Loading…
Reference in a new issue