

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# Maya アダプターの conda ビルドレシピを作成する
<a name="create-conda-recipe-maya-openjd"></a>

`maya-openjd` パッケージには、Deadline Cloud (Deadline Cloud) AWS ジョブの送信Mayaと統合するアダプターが用意されています。Deadline Cloud 送信者 GUI を使用してMayaレンダリングジョブを送信する場合、 `CondaPackages`パラメータには `maya`パッケージ`maya-openjd`とともに が含まれます。アダプターはMaya、ジョブセッション中の の起動、レンダーパラメータの通信、アプリケーションのライフサイクルの管理を処理します。アダプターの詳細については、[「アダプターパッケージ](conda-package.md#conda-package-adaptors)」を参照してください。

## レシピについて
<a name="maya-openjd-recipe-structure"></a>

[maya-openjd サンプルレシピ](https://github.com/aws-deadline/deadline-cloud-samples/tree/mainline/conda_recipes/maya-openjd)は、PyPI に公開された [deadline-cloud-for-maya](https://github.com/aws-deadline/deadline-cloud-for-maya) ソースパッケージからアダプターを構築します。[recipe.yaml](https://github.com/aws-deadline/deadline-cloud-samples/blob/mainline/conda_recipes/maya-openjd/recipe/recipe.yaml) は、 を使用して conda 環境にパッケージをインストール`pip`します。

レシピは、最初に構築する必要がある Deadline Cloud サンプルリポジトリの Python と他の 2 つのパッケージによって異なります。
+ [deadline](https://github.com/aws-deadline/deadline-cloud-samples/tree/mainline/conda_recipes/deadline) – Deadline Cloud クライアントライブラリ。
+ [openjd-adaptor-runtime](https://github.com/aws-deadline/deadline-cloud-samples/tree/mainline/conda_recipes/openjd-adaptor-runtime) – Open Job Description アダプターランタイム。

Python およびその他の依存関係は [conda-forge](https://conda-forge.org/) から利用できるため、アダプターパッケージを構築するときに `rattler-build publish` コマンド`-c conda-forge`に を追加します。

## アダプターパッケージの構築
<a name="maya-openjd-build-package"></a>

`maya-openjd` パッケージは、Deadline Cloud サンプルリポジトリの他の 2 つのパッケージに依存します。`conda_recipes` ディレクトリから 3 つのパッケージを順番に構築します。各コマンド`-c conda-forge`のオプションは、Python ライブラリと Python ライブラリのレシピ依存関係を満たすことです。

`deadline` パッケージを構築します。

```
rattler-build publish deadline/recipe/recipe.yaml \
    --to file://$HOME/my-conda-channel \
    --build-number=+1 \
    -c conda-forge
```

`openjd-adaptor-runtime` パッケージを構築します。

```
rattler-build publish openjd-adaptor-runtime/recipe/recipe.yaml \
    --to file://$HOME/my-conda-channel \
    --build-number=+1 \
    -c conda-forge
```

`maya-openjd` パッケージを構築します。

```
rattler-build publish maya-openjd/recipe/recipe.yaml \
    --to file://$HOME/my-conda-channel \
    --build-number=+1 \
    -c conda-forge
```

その他の公開オプションの場合:
+ Amazon S3 チャンネルに発行するには、「パッケージを [S3 conda チャンネルに発行する](publish-packages-s3-channel.md)」を参照してください。
+ Deadline Cloud パッケージ構築キューを使用してビルドを自動化するには、「[Automate package builds with Deadline Cloud](automate-package-builds.md)」を参照してください。