Can a single package produce multiple versions? #1187
-
Hi, I'm trying to find a way to share I can't find the best workflow for that, here is what I tried:
This kind of works, but as I need to do a few things at build time, I can't use the
from build_utils.templates.nuke import *
@early()
def get_vars(me):
from build_utils.nuke import get_vars
return get_vars(me["version"], this.root)
version = "13.0.2"
Is there a way to do what I want in a cleaner way? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The info you could get from rez in early stage is very limited. But if the package source path is all you need to get start, |
Beta Was this translation helpful? Give feedback.
-
Additionally, to answer the title of this thread, there is one type of package that is not being documented in Wiki but actually does what you've asked for. It's called "combined-package", which looks like this (an example used in tests) : https://github.com/nerdvegas/rez/blob/master/src/rez/data/tests/packages/py_packages/multi.py That kind of packages aren't being structured with a package/version named directory plus a |
Beta Was this translation helpful? Give feedback.
Additionally, to answer the title of this thread, there is one type of package that is not being documented in Wiki but actually does what you've asked for. It's called "combined-package", which looks like this (an example used in tests) :
https://github.com/nerdvegas/rez/blob/master/src/rez/data/tests/packages/py_packages/multi.py
That kind of packages aren't being structured with a package/version named directory plus a
package.py
in it, but only a python file exposed in packages dir path and named as{pkg_name}.py
, e.g.foo.py
,nuke.py
.