I’m trying to build the editor on my Mac running Big Sur. When I try to grab external packages:
python2 ./scripts/build.py install_ext --platform=x86_64-darwin --package-path=./mystuff
I end up seeing lot of Python syntax errors, samples below.
File "build/bdist.macosx-11.2-x86_64/egg/pip/_internal/self_outdated_check.py", line 184
pip_cmd = f"{sys.executable} -m pip"
File "/Users/martinfox/Programs/defold/defold/tmp/dynamo_home/ext/lib/python/pip-21.0.1-py2.7.egg/pip/_internal/configuration.py", line 167
raise ConfigurationError(f"No such key - {key}")
All of the syntax errors involve f-strings which are a Python 3.6 feature according to my friendly neighborhood search engine (I’m not a Python coder). The Defold documentation states that the required Python version is 2.7.
(Note: I get the same problem if I drop the --platform option. And despite what the documentation shows the build.py script insists on having a --package-path specified.)
How do I get past this? Is the only option to install Python 3.6+?