-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps)!: Update to openjd-runtime-adaptor (#32)
move to deadline-0.30 and move to openjd-adaptor-runtime as openjd has been deprecated. --------- Signed-off-by: Alex Gerveshi <[email protected]>
- Loading branch information
Showing
7 changed files
with
73 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,53 +16,48 @@ All of the testing and development dependencies are in the `setup.cfg` and are m | |
|
||
`./build.sh` will build and run `pytest`. | ||
|
||
# Submitter Development Workflow | ||
## Submitter Development Workflow | ||
|
||
WARNING: This workflow installs additional Python packages into your Maya's python distribution. | ||
|
||
1. Create a development location within which to do your git checkouts. For example `~/deadline-clients`. | ||
Clone packages from this directory with commands like | ||
`git clone [email protected]:casillas2/deadline-cloud-for-maya.git`. You'll also want the `deadline-cloud` and `openjd` repos. | ||
1. Create a development location within which to do your git checkouts. For example `~/deadline-clients`. Clone packages from this directory with commands like `git clone [email protected]:casillas2/deadline-cloud-for-maya.git`. You'll also want the `deadline-cloud` and `openjd` repos. | ||
2. Switch to your Maya directory, like `cd "C:\Program Files\Autodesk\Maya2023"`. | ||
3. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\deadline-cloud` to install the Amazon Deadline Cloud Client | ||
Library in edit mode. | ||
4. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\openjd` to install the Open Job Description | ||
Library in edit mode. | ||
5. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\deadline-cloud-for-maya` to install the Maya Submtiter | ||
in edit mode. | ||
3. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\deadline-cloud` to install the Amazon Deadline Cloud Client Library in edit mode. | ||
4. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\openjd-adaptor-runtime-for-python` to install the Open Job Description Adaptor Runtime Library in edit mode. | ||
5. Run `.\mayapy -m pip install -e C:\Users\<username>\deadline-clients\deadline-cloud-for-maya` to install the Maya submitter in edit mode. | ||
6. Edit (create if missing) your `~/Documents/maya/2023/Maya.env` file, and add the following lines to it: | ||
``` | ||
|
||
```bash | ||
DEADLINE_ENABLE_DEVELOPER_OPTIONS=true | ||
MAYA_MODULE_PATH=C:\Users\<username>\deadline-clients\deadline-cloud-for-maya\maya_submitter_plugin | ||
``` | ||
|
||
The developer options add a shelf TEST button you can use to run the tests from the `job_bundle_output_tests` directory. | ||
7. Run Maya. Go to Windows > Settings/Preferences > Plug-In Manager and you will find that | ||
`DeadlineCloudForMaya.py` is available as a plugin. Check the checkbox to have Maya load | ||
the plugin and create the Deadline tray for you. Click the icon on the tray to open the submitter. | ||
7. Run Maya. Go to Windows > Settings/Preferences > Plug-In Manager and you will find that `DeadlineCloudForMaya.py` is available as a plugin. Check the checkbox to have Maya load the plugin and create the Deadline tray for you. Click the icon on the tray to open the submitter. | ||
|
||
# Application Interface Adaptor Development Workflow | ||
## Application Interface Adaptor Development Workflow | ||
|
||
You can work on the adaptor alongside your submitter development workflow using a Deadline Cloud | ||
farm that uses a service-managed fleet. You'll need to perform the following steps to subsititute | ||
farm that uses a service-managed fleet. You'll need to perform the following steps to substitute | ||
your build of the adaptor for the one in the service. | ||
|
||
1. Use the development location from the Submitter Development Workflow. | ||
Make sure you're running Maya with `set DEADLINE_ENABLE_DEVELOPER_OPTIONS=true` enabled. | ||
2. Build wheels for `openjd`, `deadline` and `deadline-cloud-for-maya`, place them in a "wheels" | ||
folder in `deadline-cloud-for-maya`. A script is provided to do this, just execute from `deadline-cloud-for-maya`: | ||
``` | ||
1. Use the development location from the Submitter Development Workflow. Make sure you're running Maya with `set DEADLINE_ENABLE_DEVELOPER_OPTIONS=true` enabled. | ||
2. Build wheels for `openjd_adaptor_runtime`, `deadline` and `deadline_cloud_for_maya`, place them in a "wheels" folder in `deadline-cloud-for-maya`. A script is provided to do this, just execute from `deadline-cloud-for-maya`: | ||
|
||
```bash | ||
# If you don't have the build package installed already | ||
$ pip install build | ||
... | ||
$ ./scripts/build_wheels.sh | ||
``` | ||
|
||
Wheels should have been generated in the "wheels" folder: | ||
``` | ||
|
||
```bash | ||
$ ls ./wheels | ||
deadline_cloud_for_maya-<version>-py3-none-any.whl | ||
deadline-<version>-py3-none-any.whl | ||
openjd-<version>-py3-none-any.whl | ||
openjd_adaptor_runtime-<version>-py3-none-any.whl | ||
``` | ||
3. Open the Maya integrated submitter, and in the Job-Specific Settings tab, enable the option 'Include Adaptor Wheels'. This | ||
option is only visible when the environment variable `DEADLINE_ENABLE_DEVELOPER_OPTIONS` is set to `true`. | ||
Then submit your test job. | ||
|
||
3. Open the Maya integrated submitter, and in the Job-Specific Settings tab, enable the option 'Include Adaptor Wheels'. This option is only visible when the environment variable `DEADLINE_ENABLE_DEVELOPER_OPTIONS` is set to `true`. Then submit your test job. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters