When building Blender as a Python module lately I have been having a weird issue where if I copy the 2.91
scripts dir into the correct place (used to be you had to copy it net to the python executable), it complains that
Color management: using fallback mode for management
Color management: Error could not find role data role.
BLT_lang_init: 'locale' data path for translations not found, continuing
Color management: scene view "Filmic" not found, setting default "Standard".
blf_load_font_default: 'fonts' data path not found for 'droidsans.ttf', will not be able to display text
blf_load_font_default: 'fonts' data path not found for 'bmonofont-i18n.ttf', will not be able to display text
blf_load_font_default: 'fonts' data path not found for 'bmonofont-i18n.ttf', will not be able to display text
bpy: couldn't find 'scripts/modules', blender probably wont start.
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
ModuleNotFoundError: No module named 'bpy_types'
ERROR (bpy.rna): C:\Users\TGubs\Code\Python\blenderpy\Blender\blender\source\blender\python\intern\bpy_rna.c:7251 pyrna_srna_ExternalType: failed to find 'bpy_types' module
F1125 18:42:17.941478 1136 utilities.cc:346] Check failed: !IsGoogleLoggingInitialized() You called InitGoogleLogging() twice!
*** Check failure stack trace: ***
@ 00007FF91A479C4B google::LogMessage::Flush
@ 00007FF91A4792A9 google::LogMessageFatal::~LogMessageFatal
@ 00007FF91A47DBF3 google::glog_internal_namespace_::InitGoogleLoggingUtilities
@ 00007FF91944991C main_python_enter
@ 00007FF919B41BB4 dealloc_obj_dealloc
@ 00007FF9656C404B _PyObject_GenericSetAttrWithDict
@ 00007FF9656EC483 PyModule_AddObject
@ 00007FF9656EE0E0 _PyNamespace_New
@ 00007FF9656EE23F _PyNamespace_New
@ 00007FF9656EE1A5 _PyNamespace_New
@ 00007FF9656B54E0 _PyMethodDef_RawFastCallDict
@ 00007FF9656CBF5F _PyEval_EvalFrameDefault
@ 00007FF9656BC0FC _PyEval_EvalCodeWithName
@ 00007FF9656BB95C _PyArg_UnpackStack
@ 00007FF9656C92C8 _PyEval_EvalFrameDefault
@ 00007FF9656BB841 _PyArg_UnpackStack
@ 00007FF9656C8484 _PyEval_EvalFrameDefault
@ 00007FF9656BB841 _PyArg_UnpackStack
@ 00007FF9656C8A6E _PyEval_EvalFrameDefault
@ 00007FF9656BB841 _PyArg_UnpackStack
@ 00007FF9656C8A6E _PyEval_EvalFrameDefault
@ 00007FF9656BB841 _PyArg_UnpackStack
@ 00007FF9656C8A6E _PyEval_EvalFrameDefault
@ 00007FF9656BB294 _PyFunction_FastCallDict
@ 00007FF9656B4587 _PyObject_CallMethodIdObjArgs
@ 00007FF9656B444D _PyObject_CallMethodIdObjArgs
@ 00007FF9656F5036 PyBytes_Fini
@ 00007FF9656B3FE0 PyImport_ImportModuleLevelObject
@ 00007FF9656E9CA7 PyImport_ImportModuleLevel
@ 00007FF919B44FBD BPy_init_modules
@ 00007FF919B41728 BPY_python_start
Has anyone else been having this issue lately? It used to work fine; I just got back into building Blender again as I saw 2.91 had an official release but am struggling to get the Python module to build for some reason.