mark support for Unreal Python Engine deprecated

This commit is contained in:
Ondrej Samohel 2021-06-24 13:12:36 +02:00 committed by Ondřej Samohel
parent 3a2f29150b
commit c916d128bc
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -245,17 +245,21 @@ def create_unreal_project(project_name: str,
}
if preset["install_unreal_python_engine"]:
# If `PYPE_UNREAL_ENGINE_PYTHON_PLUGIN` is set, copy it from there to
# support offline installation.
# WARNING: This is deprecated as Unreal Engine Python project
# is on hold and is mainly replaced in 4.26 by Epics own
# Python implementation.
# ---------------------------------------------------------------
# If `OPENPYPE_UNREAL_ENGINE_PYTHON_PLUGIN` is set, copy it from
# there to support offline installation.
# Otherwise clone UnrealEnginePython to Plugins directory
# https://github.com/20tab/UnrealEnginePython.git
uep_path = plugins_path / "UnrealEnginePython"
if env.get("PYPE_UNREAL_ENGINE_PYTHON_PLUGIN"):
if env.get("OPENPYPE_UNREAL_ENGINE_PYTHON_PLUGIN"):
os.makedirs(uep_path, exist_ok=True)
dir_util._path_created = {}
dir_util.copy_tree(
env.get("PYPE_UNREAL_ENGINE_PYTHON_PLUGIN"),
env.get("OPENPYPE_UNREAL_ENGINE_PYTHON_PLUGIN"),
uep_path.as_posix())
else:
# WARNING: this will trigger dev_mode, because we need to compile