UE 4.20.* build error in macOS

Hey,

I’m trying to build the engine (4.20.3) from the sources (tag 4.20.3-release from the official github) on macOS.
Here is the error I’ve got:

Engine/Plugins/Experimental/PythonScriptPlugin/Source/PythonScriptPlugin/Private/PyGenUtil.cpp:825: ISO C++11 does not allow conversion from string literal to 'char *'
...
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyerrors.h:220: expanded from macro 'PyErr_BadInternalCall'

My setup:

  • macOS Mojave 10.14 (18A391)
  • XCode 10.0 (10A255)
  • UE4.20.3 from this tag: https://github.com/EpicGames/UnrealEngine/tree/4.20.3-release
  • I have Python installed, both 2.7 (not sure, probably a system default or installed a long time ago) and 3.7 (installed just recently specifically to check this issue – didn’t helped)

Is there a way to fix this or disable the python plugin for build process?

As a workaround, I had to remove the whole PythonScriptPlugin folder from the sources.