<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 25, 2019 at 2:12 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 25/11/2019 08:55, Chris Johns wrote:<br>
> <br>
> On 25/11/19 5:28 pm, Sebastian Huber wrote:<br>
>><br>
>> On 24/11/2019 23:25, Chris Johns wrote:<br>
>>>>> Should there be a note or something about waf needing python and we recommend<br>
>>>>> python3? Plus waf needs a `python` installed and not just `python2` or<br>
>>>>> `python3`?<br>
>>>> I think this belongs to the Host Computer section. The quick start uses the<br>
>>>> RSB, so if you managed to build the tools, you must have a working Python.<br>
>>>> The RSB uses Python and the RTEMS Tools use waf.<br>
>>> The RSB can use python2 or python3 without a python. What about a note to say<br>
>>> ... "Waf uses python and you need to make this command available on your system".<br>
>> Now I am a bit confused. I thought every UNIX-like system provides a<br>
>><br>
>> #!/usr/bin/env python<br>
>><br>
>> which maps to Python 2 or 3?<br>
>><br>
> Apparently on some distros the python executable is not automatically installed<br>
> with a suitable python2 or python3. I am not aware of the specifics of this but<br>
> it was raised as an issue that I fixed in the RSB:<br>
> <br>
> <a href="https://devel.rtems.org/ticket/3537" rel="noreferrer" target="_blank">https://devel.rtems.org/ticket/3537</a><br>
<br>
I have never seen a system in which<br>
<br>
#!/usr/bin/env python2<br>
<br>
or<br>
<br>
#!/usr/bin/env python3<br>
<br>
works, but not<br>
<br>
#!/usr/bin/env python<br>
<br>
How many Python scripts would stop to work in this case? However, the <br>
availability of a python command is not mandatory according to:<br>
<br>
<a href="https://www.python.org/dev/peps/pep-0394/" rel="noreferrer" target="_blank">https://www.python.org/dev/peps/pep-0394/</a><br>
<br>
I think we should note in the "Host Computer" section that a "python" <br>
command is mandatory for RTEMS and remove the RSB extra stuff.<br></blockquote><div><br></div><div>Chris can answer to that.</div><div><br></div><div>But on Centos 7, we have:</div><div><br></div><div>$ type python<br>python is /usr/bin/python<br>$ python --version<br>Python 2.7.5<br>$ type python2<br>python2 is /usr/bin/python2<br>$ type python3<br>bash: type: python3: not found<br>$ env python<br>Python 2.7.5 (default, Aug 7 2019, 00:51:29) <br>[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> <br></div><div><br></div><div>and if I activate the SCL for Python 3:</div><div><br></div><div>$ scl enable rh-python36 bash <br>[joel@localhost rtems-work]$ type python <br>python is /opt/rh/rh-python36/root/usr/bin/python <br>[joel@localhost rtems-work]$ python --version <br>Python 3.6.3 <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : +49 89 189 47 41-16<br>
Fax : +49 89 189 47 41-09<br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>