

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 为 Deadline Cloud 制作一个史诗虚幻引擎 conda
<a name="examples-conda-unreal-engine"></a>

[虚幻引擎](https://github.com/aws-deadline/deadline-cloud-samples/tree/mainline/conda_recipes/unreal-engine) conda 配方构建了一个 Epic 虚幻引擎 conda 包。

与该存储库中的其他配方不同，该配方旨在在已经安装了虚幻引擎的计算机上进行*本地*构建。虚幻引擎包很大（UE 5.6在大约80,000个文件中约为20 GiB），因此将它们作为作业附件提交到队列是不切实际的。

要使用食谱，请执行以下操作：

1. 在你的Windows计算机上安装虚幻引擎。配方中的默认源路径是 Epic Games 启动器路径`C:\Program Files\Epic Games\UE_5.6`。根据您的版本或自定义源代码构建位置进行调整`recipe/recipe.yaml`。

1. 安装 [rattler-build](https://rattler-build.prefix.dev/) 并启用 Windows 长路径支持。

1. 生成软件包并将其发布到你的 conda 频道：

   ```
   rattler-build publish {{path-to-recipe-file}} --to {{publish-conda-channel}}
   ```

recipe README 包含如何根据虚幻引擎版本进行调整的分步说明，包括自定义源代码。

示例库还包括[虚幻引擎-openjd](https://github.com/aws-deadline/deadline-cloud-samples/tree/mainline/conda_recipes/unreal-engine-openjd)，它使用适用于 Windows 和 Python 3.13 的 rattler-build 构建虚幻引擎开放职位描述适配器。