]$ rez-env foo -o foo.rxt ]$ rez-bundle foo.rxt ./mybundle # example of running a command from the bundled context ]$ rez-env -i ./mybundle/context.rxt -- foo-tool
通过API创建bundle:
1 2 3 4 5
from rez.bundle_context import bundle_context from rez.resolved_context import ResolvedContext
c = ResolvedContext(["python-3+", "foo-1.2+<2"]) bundle_context(c, "./mybundle")