Am 14.10.25 um 08:45 schrieb Pavel Sanda:
On Wed, Oct 08, 2025 at 08:28:43PM +0200, Georg Baum wrote:
I did the same as Riki did for 2.3: Import the complete lyx2lyx package from
the next release. The alternative would be to import only lyx_2_5.py and do
adjustments where needed. If you prefer to do that I can have a look.
I have little idea whether what I was requesting is couple lines of changes
(like, just the two snippets relating to python 2) or more intricate
touches with robust testing required.
I do not see any possibility to keep python 2 compatibility and add 2.5
support in the same lyx2lyx version with little changes. The last commit
in lib/lyx2lyx before the python2 removal is
https://codeberg.org/LyX-org/lyx/commit/d2db74f9ee1c2fe566c2af7a3d62dccaecec08cb.
The difference to latest 2.4.x without the lyx2lyx backport is not that
big, so using that would be more safe. However, a lot happened after
that commit in lib/lyx2lyx/lyx_2.5.py, and this part would need to be
backported and tested in a different environment than it is tested right
now. This is some amount of work, and we don't know how good the 2.5
conversion will be after that.
If the second is true, then the danger of introducing problems into
conversion process looks more troubling that ditching older python
releases.
There is another option: Revert the lyx2lyx backport, and reintroduce it
as a second lyx2lyx copy instead, e.g. lib/lyx2lyx_2_5. This would
require three changes:
1) In lib/configure.py to use lib/lyx2lyx_2_5 for export to 2.5.x
2) In Buffer::convertLyXFormat() to use lib/lyx2lyx_2_5 for import of 2.5.x.
3) build system adjustments to include the second copy in packaging etc.
With this approach, the 2.4<->2.5 conversions would require python3 and
use the tested package that will also be released with 2.5.0. The risk
for conversions of older versions would be zero. The amount of work to
do would be feasible.
Shall we keep the current state, or try a second lyx2lyx copy?
Georg
--
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel