Am 26.10.2011 um 02:07 schrieb Julien Rioux:

> One approach to use the correct `python' (e.g., it could be `python2' because 
> `python' points to version >3.0) is to have configure generate the affected 
> files.
> 
> Summary:
> Rename os.cpp -> os.cpp.in
> Rename configure.py -> configure.py.in
> Replace `python' with @python@ in those files, to be replaced by configure 
> with the correct name for the python interpreter.
> Fallback to `python' when no suitable python interpreter is found (will fail 
> at runtime, but as far as the build system is concerned you can still build 
> LyX without python as long as no po files updates are necessary).
> 
> Cmake implementation missing. Comments welcome!

I'm afraid this makes it more difficult to build a LyX package for distribution.
A package (e.g. .rpm) built this way doesn't work without hacks on a system 
with a 
different python major version. But I don't know how important this scenario is 
these days. If LyX is build and installed as part of a given linux distribution
it should fit the bill.

Stephan

Reply via email to