From 0fe4e35138b1146decb946905690dbbddccd10be Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 18 Oct 2009 09:25:16 +0200 Subject: [PATCH] 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 --- helpers/python-module.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 helpers/python-module.sh diff --git a/helpers/python-module.sh b/helpers/python-module.sh new file mode 100644 index 0000000000..e080545c08 --- /dev/null +++ b/helpers/python-module.sh @@ -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 +}