AcademySoftwareFoundation / AcademySoftwareFoundation/rez
ModifyList when modifying config in package.py
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 374
- Avg merge
- 9d 12h
- Merged PRs (30d)
- 5
Description
Hello!
I'm trying to add a release_hook to my package to copy some scripts to set locations outside the Rez package structure (for Deadline).
Following what I've found on the wiki, I have this in my package.py:
```
with scope("config") as c:
c.release_hooks = ModifyList(append=["deadline"])
```
But every time I try to do a rez-build --install, I get this error:
> 11:40:35 ERROR ResourceError: Problem loading c:\users\brian.silva\packages\...\package.py: invalid syntax (package.py, line 52)
And if I then look at that file, I see this:
```
with scope('config') as config:
config.plugin_path =
```
Am I doing something incorrectly here?
Contributor guide
Research direction
Start by reproducing the reported `rez-build --install` command with the `package.py` snippet using `scope("config")` and `ModifyList`. Inspect the generated `package.py` shown in the report; done means the ModifyList value is serialized as valid package configuration and installation completes without the syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100