{"action":"created","issue":{"url":"https://api.github.com/repos/nerdvegas/rez/issues/352","repository_url":"https://api.github.com/repos/nerdvegas/rez","labels_url":"https://api.github.com/repos/nerdvegas/rez/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/nerdvegas/rez/issues/352/comments","events_url":"https://api.github.com/repos/nerdvegas/rez/issues/352/events","html_url":"https://github.com/nerdvegas/rez/issues/352","id":181294872,"number":352,"title":"Question about migrating to rez","user":{"login":"ttanimura","id":8716308,"avatar_url":"https://avatars.githubusercontent.com/u/8716308?v=3","gravatar_id":"","url":"https://api.github.com/users/ttanimura","html_url":"https://github.com/ttanimura","followers_url":"https://api.github.com/users/ttanimura/followers","following_url":"https://api.github.com/users/ttanimura/following{/other_user}","gists_url":"https://api.github.com/users/ttanimura/gists{/gist_id}","starred_url":"https://api.github.com/users/ttanimura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttanimura/subscriptions","organizations_url":"https://api.github.com/users/ttanimura/orgs","repos_url":"https://api.github.com/users/ttanimura/repos","events_url":"https://api.github.com/users/ttanimura/events{/privacy}","received_events_url":"https://api.github.com/users/ttanimura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-05T23:59:10Z","updated_at":"2016-10-06T07:57:33Z","closed_at":null,"body":"Hi. Our department at Imageworks is thinking about moving to rez for managing versions and environments. Unfortunately, our existing setup is too messy to allow for a clean way to port over. \r\n\r\n- Is there a way to use `rez-env` in such a way that it acts on the existing environment instead of setting up an entirely new one? Something like like `virtualenv`'s `--system-site-packages` option where we have access to all existing env vars would work as well.  Our thinking is to set up packages to only append dirs under `{root}` where appropriate, and then add lower level dependencies (like python) later as we go.\r\n- Failing that, is there a way to resolve packages and bake out their env into a .sh or .csh file that can be sourced? If we could execute each package's `commands()` and save that out, that would probably do the trick.\r\n\r\nI hope that makes sense, and apologies if these are stupid questions - I'm just getting started with rez but don't want to go too deep into the rabbit hole quite yet. If you have other suggestions on good ways to migrate I would love to hear them.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/nerdvegas/rez/issues/comments/251892747","html_url":"https://github.com/nerdvegas/rez/issues/352#issuecomment-251892747","issue_url":"https://api.github.com/repos/nerdvegas/rez/issues/352","id":251892747,"user":{"login":"instinct-vfx","id":243828,"avatar_url":"https://avatars.githubusercontent.com/u/243828?v=3","gravatar_id":"","url":"https://api.github.com/users/instinct-vfx","html_url":"https://github.com/instinct-vfx","followers_url":"https://api.github.com/users/instinct-vfx/followers","following_url":"https://api.github.com/users/instinct-vfx/following{/other_user}","gists_url":"https://api.github.com/users/instinct-vfx/gists{/gist_id}","starred_url":"https://api.github.com/users/instinct-vfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instinct-vfx/subscriptions","organizations_url":"https://api.github.com/users/instinct-vfx/orgs","repos_url":"https://api.github.com/users/instinct-vfx/repos","events_url":"https://api.github.com/users/instinct-vfx/events{/privacy}","received_events_url":"https://api.github.com/users/instinct-vfx/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T07:57:33Z","updated_at":"2016-10-06T07:57:33Z","body":"As for the first one that should already be true unless i misunderstood the question. rez does not remove env variables or paths from PATH or the likes.\r\n\r\nAs for the second point, yes you can output the commands in different ways. When you use rez-env there is a context file created as well as shell scripts (or batch files) to create this context. The exact path is available in the environment variable REZ_CONTEXT_FILE in the resolved shell.\r\n\r\nCheers,\r\nThorsten"}}
{"actor":{"display_login":"instinct-vfx"}}