Mercurial > bitten > bitten-test
changeset 526:6435da25eaae
Add `prefix` parameter (see #134)
author | dfraser |
---|---|
date | Wed, 18 Mar 2009 06:55:44 +0000 |
parents | bb448ad9bf35 |
children | ab4942089190 |
files | bitten/build/ctools.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/build/ctools.py +++ b/bitten/build/ctools.py @@ -24,7 +24,7 @@ __docformat__ = 'restructuredtext en' def configure(ctxt, file_='configure', enable=None, disable=None, with_=None, - without=None, cflags=None, cxxflags=None, **kw): + without=None, cflags=None, cxxflags=None, prefix=None, **kw): """Run a ``configure`` script. :param ctxt: the build context @@ -36,6 +36,7 @@ :param without: names of external packages to exclude :param cflags: ``CFLAGS`` to pass to the configure script :param cxxflags: ``CXXFLAGS`` to pass to the configure script + :param prefix: install prefix to pass to the configure script, will be postfixed by the machine name from the build """ args = [] if enable: @@ -59,6 +60,8 @@ args.append('CFLAGS=%s' % cflags) if cxxflags: args.append('CXXFLAGS=%s' % cxxflags) + if prefix: + args.append('--prefix=%ss' % prefix) from bitten.build import shtools returncode = shtools.execute(ctxt, file_=file_, args=args)