configure.py assumes "python" command exists

Scott Kostyshak skostysh at lyx.org
Mon Feb 15 00:43:47 UTC 2021


Some things did not work when I compiled on Ubuntu 20.10 because by
default Ubuntu 20.10 does not have a "python" command and instead
realies on "python2" and "python3" commands. The fix is easy: just
needed to install the package "python-is-python3". I don't know much
about this, but I think it is partly explained here:

https://www.python.org/dev/peps/pep-0394/#recommendation

LyX's configure.py assumes that the command "python" exists when setting
the commands of some converters. Is this something we want to fix? Would
it be reasonable for configure.py to just capture the path to the python
command that it is called with and pass that on when it is setting the
converter commands?

Or for the next release cycle would it be reasonable to change all
"python" commands to "python3" commands or is that not portable for all
modern platforms (by the time the next major version is released)?

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210214/484bf67c/attachment.asc>


More information about the lyx-devel mailing list