RTEMS | Most of our Python files still refer to python instead of python3 (#5154)

Amar Takhar (@amar) gitlab at rtems.org
Sun Nov 17 20:06:02 UTC 2024



Amar Takhar created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5154

Assignee: Amar Takhar

## Summary

<!--Please provide as much information as possible such as error messages or attaching logs-->

Bumping the version of waf has made us require python3.  So what's the point of any of our scripts pointing to 'python'.  Are we ready to accept a hybrid of complaints between someone running 2.7 and _3.11_??  That is a nightmare as long as the script runs under Python3 without warnings we should bump because guaranteed they are just doing `ln -s python3 python` instead of running a hybrid environment.

Yes it's close to the release my argument is: it will be less work for us fixing bugs if everyone is running Python 3 than sending any kind of message that we're supporting 2.7.  There is a 10 year history of Python 2 files running under Python 3 it's fine and rarely an issue as long as you fix any errors if `--help` runs it will almost always work.

Python2:

```
rtems_waf/gccdeps.py #!/usr/bin/env python
rtems-docs/book/posix-compliance/posix_rst.py #! /usr/bin/env python
rtems-docs/common/rtemsref.py #!/usr/bin/env python
rtems-docs/posix-compliance/posix_rst.py #! /usr/bin/env python
rtems-libbsd/firmware-gen.py #!/usr/bin/env python
rtems-libbsd/freebsd-to-rtems.py #! /usr/bin/env python
rtems-libbsd/mDNSResponder/mDNSPosix/parselog.py #!/usr/bin/python
rtems-libbsd/rtems-kern-symbols #! /usr/bin/env python
rtems-libbsd/testsuite/epoch01/epoch01.py #!/usr/bin/env python
rtems-libbsd/userspace-header-gen.py #!/usr/bin/env python
rtems-lwip/lwip-to-rtems.py #! /usr/bin/env python
rtems-lwip/wscript #!/usr/bin/env python
rtems-net-services/rtems_waf/gccdeps.py #!/usr/bin/env python
rtems-net-services/wscript #!/usr/bin/env python
rtems-release/release-notes/rtems-release-notes #! /usr/bin/env python
rtems-release/rtems-mailer #! /usr/bin/env python
rtems-source-builder/source-builder/pkg-config #! /usr/bin/env python
rtems-source-builder/source-builder/sb-check #! /usr/bin/env python
rtems-source-builder/source-builder/sb-defaults #! /usr/bin/env python
rtems-source-builder/source-builder/sb-get-sources #! /usr/bin/env python
rtems-source-builder/source-builder/sb-reports #! /usr/bin/env python
rtems-source-builder/source-builder/sb-rtems-config #! /usr/bin/env python
rtems-source-builder/source-builder/sb-rtems-pkg #! /usr/bin/env python
rtems-source-builder/source-builder/sb-set-builder #! /usr/bin/env python
rtems-source-builder/source-builder/sb-track #! /usr/bin/env python
rtems-source-builder/source-builder/sb/pkgconfig.py #! /usr/bin/env python
rtems-source-builder/source-builder/sb/rtems-kernel-config-check #! /usr/bin/env python
rtems-tools/doc/asciidoc/a2x.py #!/usr/bin/env python
rtems-tools/doc/asciidoc/asciidoc.py #!/usr/bin/env python
rtems-tools/doc/asciidoc/asciidocapi.py #!/usr/bin/env python
rtems-tools/doc/asciidoc/filters/code/code-filter.py #!/usr/bin/env python
rtems-tools/doc/asciidoc/filters/graphviz/graphviz2png.py #!/usr/bin/env python
rtems-tools/doc/asciidoc/filters/latex/latex2png.py #!/usr/bin/env python
rtems-tools/doc/asciidoc/filters/music/music2png.py #!/usr/bin/env python
rtems-tools/doc/asciidoc/tests/asciidocapi.py #!/usr/bin/env python
rtems-tools/doc/asciidoc/tests/testasciidoc.py #!/usr/bin/env python
rtems-tools/linkers/waf-tools/doxygen.py #! /usr/bin/env python
rtems-tools/misc/rtems-boot-image #! /usr/bin/env python
rtems-tools/misc/rtems-gen-acpica-patches #! /usr/bin/env python
rtems-tools/misc/rtems-tftp-proxy #! /usr/bin/env python
rtems-tools/misc/tools/getmac/__main__.py #!/usr/bin/env python
rtems-tools/misc/tools/mkimage.py #!/usr/bin/env python
rtems-tools/tester/rt/pygdb/mi_parser.py #!/usr/bin/python
rtems-tools/tester/rtems-bsp-builder #! /usr/bin/env python
rtems-tools/tester/rtems-run #! /usr/bin/env python
rtems-tools/tester/rtems-test #! /usr/bin/env python
rtems-tools/tester/rtems-tftp-server #! /usr/bin/env python
rtems/wscript #!/usr/bin/env python
```

Python 3:

```
rtems-docs/common/icons/gen_png.py #!/usr/bin/env python3
rtems-docs/common/icons/gen_svg.py #!/usr/bin/env python3
rtems-libbsd/freebsd/sbin/ping/tests/injection.py #! /usr/bin/env python3
rtems/gccdeps.py #!/usr/bin/env python3
rtems/rtems-bsps #! /usr/bin/env python3
rtems/testsuites/build/bin/fake-rtems5-ar #!/usr/bin/env python3
rtems/testsuites/build/bin/fake-rtems5-gcc #!/usr/bin/env python3
rtems/testsuites/build/bin/fake-rtems5-ld #!/usr/bin/env python3
rtems/testsuites/build/test.py #!/usr/bin/env python3
rtems/testsuites/rtems-test-check.py #! /usr/bin/env python3
```

## Steps to reproduce

### Pre-set options

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5154
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241117/ac27266e/attachment-0001.htm>


More information about the bugs mailing list