- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop python2 support #3936
Comments
Replying to vascom (#3936):
That's not true. There is no any python2 dependency in the mc.
In the source tree, shebang in those files is
The substitution of @python@ is done in configure state.
|
As I see it set in configure.ac by
So if I change it to python3 path the above two vfs plugins will normal work? |
I don't know. Personally I don't use these plugins. |
Then need test plugins with python3 and rewrite or remove them. |
Hi.
Any progress? |
As for uc1541, it supports both - python2 and python3, although I recommend to update it to the latest version (available on https://github.com/gryf/uc1541), since there are couple of tweaks and fixes.
I'd also recommend to use python in shebang, probably this form is best:
so that, default python interpreter defined in a system will be used. Some systems allows to set default interpreter to be python3 and /usr/bin/python is a link to the chosen interpreter.
According to https://legacy.python.org/dev/peps/pep-0394/ python interpreter can be used for both - python2 and python3 compatible scripts, and uc1541 currently is compatible with both versions. |
|
Important
This issue was migrated from Trac:
vascom
(@Vascom)python2
,python3
,vfs
,extfs
Python 2 EOL in 2020 and most of the Linux distributions started to drop python2 support already.
MC contain two file with python2 shebang:
/usr/libexec/mc/extfs.d/s3+
/usr/libexec/mc/extfs.d/uc1541
Please fix it so MC not require python2 anymore.
The text was updated successfully, but these errors were encountered: