Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localised, localised --transient #9

Open
mottosso opened this issue Jun 27, 2019 · 0 comments
Open

localised, localised --transient #9

mottosso opened this issue Jun 27, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@mottosso
Copy link
Owner

Goal

Dynamically localise packages as you resolve a request.

Motivation

Sometimes, you're aware of what packages run slow and can explicitly localise the ones that interest you. Other times you rely on #6 (Automatic Localisation) to localise for you.

But other times you want to resolve a request for the first time and just want everything running locally.

Implementation

$ rez env localz -- localised maya-2018 core_pipeline-1.2 alita-1
# localising..
> $

This command wraps rez env with a prior call to localise, to first localise the request prior to entering the context.

$ rez env localz -- localised python-3 core_pipeline-3 --transient
$ > exit
# cleaning up..
$

The --transient flag removes localised packages once you exit the context, for those quick-and-dirty sessions where you've got some requirements and a task at hand, but it's a one-off and you don't expect to return.

If packages are already local at the time of the request, nothing is localised and it's practically a no-op, that guarantees everything is local every time you run it, and takes the appropriate measures if it isn't already.

@mottosso mottosso added the enhancement New feature or request label Jun 27, 2019
@mottosso mottosso changed the title localised localised, localised --transient Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant