This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Python & Automake
- From: Alexandre Duret-Lutz <adl at src dot lip6 dot fr>
- To: Akim Demaille <akim at epita dot fr>
- Cc: Automake List <automake at gnu dot org>
- Date: Tue, 02 Mar 2004 10:49:50 +0100
- Subject: Re: Python & Automake
- References: <mv4n076i6gs.fsf@nostromo.lrde.epita.fr>
>>> "Akim" == Akim Demaille <akim@epita.fr> writes:
[...]
Akim> import string, sys
Akim> sys.path.insert(0, '@prefix@/share/@PACKAGE@')
Akim> package = '@PACKAGE@'
Akim> version = '@VERSION@'
Akim> prefix = '@prefix@'
Akim> datadir = string.replace('@datadir@', '${prefix}', prefix)
Akim> pkgdatadir = string.replace('@pkgdatadir@', '${datadir}', datadir)
Akim> import libit
Akim> apply(libit.main, tuple(sys.argv[1:]))
Akim> ----------------------------------------
Akim> Aside from the needed update for the Makefile.am
Akim> machinery, is the top level generation and redirection
Akim> the recommended way?
I'd rather generate the script from Makefile rather than from
config.status, as done for bin/autoconf, bin/autom4te, etc.
Replacing just ${prefix} may not be always enough. Also I'm not
sure @pkgdatadir@ is available as an AC_SUBST.
I don't know what's best for the rest.
--
Alexandre Duret-Lutz