godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

Don't work on mac with chip m1

Open roci33 opened this issue 4 years ago • 1 comments

Hi, I have a mac air with an m1 chip, I have done all the installation of the package in the correct way, but when I find myself changing the language on Godot the choice "python" does not appear

roci33 avatar May 21 '21 15:05 roci33

Ever since this cursed day Apple made it announce, I knew this time would come :trollface:

@roci33 m1 chip are not currently supported, however your PRs are welcome if you want to help on this ;-)

  • Godot already supports m1 (it ships universal binaries for macOS)
  • python-build-standalone also supports m1: https://github.com/indygreg/python-build-standalone/releases/tag/20210506 (aarch64-apple-darwin is macOS/m1, x86_64-apple-darwin is macOS/intel)

So you need to copy and modify the platform osx-64 file In theory it should be mostly copy/replace so nothing fancy here ^^

After that pythonscript.gdnlib should also be modified to add m1 path

And finally you should add the build to the CI, Github action doesn't provide m1 machine yet, so you'll have to build on intel and skip the test phase (typically copy the 🍎 macOS build build and rename them into 🍎 macOS/intel build and 🍏 macOS/m1 build).

touilleMan avatar May 26 '21 07:05 touilleMan