[SeaBIOS] [Patch] Force usage of Python 2 on systems with Python 3 as default
Johannes Krampf
johannes.krampf at googlemail.com
Sun Jan 5 15:33:20 CET 2014
Hello SeaBIOS developers,
I'm using SeaBIOS together with Coreboot and it works very well. Thank
you for your great work!
The compilation of coreboot is done on a system where /usr/bin/python
refers to python3. This makes scripts in the Python2 dialect fail with a
syntax error.
Since afaik Ubuntu will use Python 3 as default in the next release a
bigger number of people will be affected by this when compiling coreboot.
According to PEP-394 (http://www.python.org/dev/peps/pep-0394/) systems
are supposed to have a "python2" command which refers to Python 2. This
is the case on the systems I've tested. (Note: I have not tested many
enterprise distributions.)
I *think* it should be safe to make the usage of python2 explicit and
I've attached a patch to do so. The patch should be trivial, but please
tell me if you require any adjustments. I will be happy to do them.
Should you have reservations over this patch due to some older systems
possibly not having "python2", I might also try to make the scripts
compatible with both Python 2 and Python 3.
Regards,
Johannes
P.S. Please be so kind as to CC me in any responses as I'm not
subscribed to the list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seabios-python2.patch
Type: text/x-patch
Size: 3950 bytes
Desc: not available
URL: <http://www.seabios.org/pipermail/seabios/attachments/20140105/1b8ead4f/attachment.patch>
More information about the SeaBIOS
mailing list