Interesting discovery from automatic tools (python code)

Kornel Benko kornel at lyx.org
Mon Aug 1 07:42:45 UTC 2022


Am Sun, 31 Jul 2022 11:41:02 +0100
schrieb José Matos <jaomatos at gmail.com>:

> On Sun, 2022-07-31 at 11:16 +0200, Pavel Sanda wrote:
> > Sure, whatever you need :)
> > The patch is in.
> > 
> > Pavel  
> 
> First attempt. :-)
> 
> The code is straightforward, on my system it works in both python2 and
> python3. FWIW the only difference is:
> 
> --- configure2.log      2022-07-31 11:32:45.733253492 +0100
> +++ configure.log       2022-07-31 11:33:20.607195627 +0100
> @@ -1,4 +1,4 @@
> -INFO: +Running LyX configure with Python 2.7.18
> +INFO: +Running LyX configure with Python 3.10.5
>  INFO: checking for a Latex2e program...
>  DEBUG: (latex $$i,latex2e $$i)
>  INFO: +checking for "latex"...  yes
> 
> And of course that is the expected.
> 
> FWIW the code should work on any system/OS... famous last words, I
> know. :-D
> 
> Please test it.

I see an unimportant difference only in configure.log.

--- configure.log	2022-08-01 09:28:14.766565470 +0200 (old)
+++ ../configure.log	2022-08-01 09:35:13.821649797 +0200 (new)
@@ -1495,13 +1495,15 @@
 
 
 INFO: checking for an EPS -> PNG converter...
-DEBUG: (magick $$i[0] $$o,convert $$i[0] $$o)
+DEBUG: (magick,convert)
 INFO: +checking for "magick"...  not in path
 INFO: +checking for "convert"...  yes
 DEBUG: Add to RC:
 \converter eps        png        "convert $$i[0] $$o"	""
 
 
+DEBUG: Removing file mock.eps
+DEBUG: Removing file mock.png
 INFO: checking for a Grace -> Image converter...
 DEBUG: (gracebat)
 INFO: +checking for "gracebat"...  yes

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220801/d8c68a72/attachment.asc>


More information about the lyx-devel mailing list