Python scripts should support Python 3
See original GitHub issue- This issue is blocking
- This issue is causing unreasonable pain
There are python scripts in https://github.com/dotnet/arcade/tree/main/src/Microsoft.DotNet.Build.Tasks.Installers/build/deb-package-tool/scripts that aren’t compatible with Python 3. Python 2 is out of support by now, and Debian 12 will remove support for it entirely, so we probably need to update these scripts to be able to run on Python 3.
If it’s not possible to author them to run in both versions of Python, this may be complicated because it would have to be coordinated with switching all of the CI images (that use deb-package-tool at least) to install Python 3 instead of Python 2).
For reference, this came up when we migrated to Debian 11, and the python
command is no longer available by default:
FYI @marcpopMSFT @mmitche
Release Note Category
- Feature changes/additions
- Bug fixes
- Internal Infrastructure Improvements
Release Note Description
Issue Analytics
- State:
- Created 5 months ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Is there a standard way to make sure a python script will be ...
The definitive answer to your question is: "No, there is no standard way to make sure a python script will be interpreted by...
Read more >Porting Python 2 Code to Python 3
Drop support for Python 2.6 and older¶ ... While you can make Python 2.5 work with Python 3, it is much easier if...
Read more >PEP 394 – The “python” Command on Unix-Like Systems
This PEP outlines the behavior of Python scripts when the python command is ... The Python 3.x idle , pydoc , and python-config...
Read more >2. Writing the Setup Script — Python 3.11.4 documentation
The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. The main purpose of the...
Read more >6. Modules — Python 3.11.4 documentation
Modules can import other modules. It is customary but not required to place all import statements at the beginning of a module (or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, I think we can close this. Any other work is tracked by https://github.com/dotnet/arcade/issues/13186.
Great! Are we able to close out this issue, or is there more work that needs to be done?