[Swan-dev] Python shebang on testing/

Tuomo Soini tis at foobar.fi
Sun Feb 2 11:01:35 UTC 2020


All testing scripts are still having #!/usr/bin/python

We should move to #!/usr/bin/python3 now when that's default python on
all distros (at least debian and fedora and latest rhel/centos).

I added PYTHON_BINARY config option for handling whatever python
version is wanted on distro but testing has it hardcoded because
scripts are not generated.

Could you try all of our python scripts in testing/ tree and when
tested to work with python3, change shebang to correct python version.

#!/usr/bin/python2 should be used for python2.
#!/usr/bin/python3 should be used for python3.

#!/usr/bin/python should not be used at all.

Next thing on installed versions is to change PYTHON_BINARY default to
/usr/bin/python3 now, I still left it to /usr/bin/python until I have
time to fix everything in packaging tree to point to correct python
binary.

-- 
Tuomo Soini <tis at foobar.fi>
Foobar Linux services
+358 40 5240030
Foobar Oy <https://foobar.fi/>


More information about the Swan-dev mailing list