there are few changes I made to dartvm_fetch_build.py to make it compatible with Python 3.12:
replace some snippets of tools/utils.py (file rewriting) of dart SDK in order to replace imp module with importlib
replace invalid escape strings with raw strings of tools/utils.py (file rewriting) to avoid SyntaxWarning (SyntaxError in future versions) of 3.12 as stated in second paragraph of Other Language Changes
I think it's easier to do this rewriting approach in blutter instead of asking dart SDK managers to fix it in each version that still uses the old imp module, since there are many and blutter fetches their respective tools/utils.py
when running blutter with Python 3.12, there's an error once
tools/utils.py
of dart SDK is executed:this has nothing to do with blutter or dart SDK but with the new changes of Python 3.12 release, as one of them is the migration of
imp
module: https://docs.python.org/3.12/whatsnew/3.12.html#impthere are few changes I made to
dartvm_fetch_build.py
to make it compatible with Python 3.12:tools/utils.py
(file rewriting) of dart SDK in order to replaceimp
module withimportlib
tools/utils.py
(file rewriting) to avoidSyntaxWarning
(SyntaxError
in future versions) of 3.12 as stated in second paragraph of Other Language ChangesI think it's easier to do this rewriting approach in blutter instead of asking dart SDK managers to fix it in each version that still uses the old
imp
module, since there are many and blutter fetches their respectivetools/utils.py