-
Notifications
You must be signed in to change notification settings - Fork 338
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
Using rez env interactively in windows #375
Comments
Hey,
rez-env requests is supposed to put you into an interactive subshell,
configured for that environment. When you're in the new shell, the prompt
is updated so that something like ']$' becomes '>]$' (note prepended
chevron).
There must be some problem in your scenario - some issue with the shell
startup. I'm not familiar with how this should work on Windows so I'm
hoping others will chime in.
Thx
A
…On Thu, Jan 12, 2017 at 2:15 PM, Brendan Abel ***@***.***> wrote:
What is the preferred way of creating interactive rez environments?
I have several rez packages built and rez env is resolving them, but it
doesn't seem to be applying them to the current shell (windows cmd).
For example, I'm using rez env to build a context with the requests
python library
rez env requests
Rez appears to find and resolve the package, but it's not updating the
PYTHONPATH in my shell.
If I run the following command, it will launch a child shell and the
packages are correctly applied. Is this how it is supposed to work -- that
you have to launch a child process to apply the package environment?
rez env requests -c CMD
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#375>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABjqSsrCkl6O3xgozNAchl6X2ODQxQvZks5rRZrRgaJpZM4LhU8G>
.
|
Can you share some more information like the code of the package.py file to investigate? Cheers, |
I took another stab at getting rez to work on windows today. I have this same issue with the hello_world example. In windows cmd.exe and in git-bash UPDATE Just saw PR #377. I'll give that a go |
Out of curiosity, what happens if you do "rez-env PACKAGES -- cmd.exe"?
…On Wed, Feb 8, 2017 at 3:40 PM Jordan Hueckstaedt ***@***.***> wrote:
I took another stab at getting rez to work on windows today. I have this
same issue with the hello_world example. In windows cmd.exe and in git-bash
rez-env does not put the environment in a sub-shell, and therefore it
does not affect $PATH.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#375 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAEYePcXq0fbSYIleR4ysfWm1BsVdNu_ks5ralKHgaJpZM4LhU8G>
.
|
@elrond79 Yes, that will drop you into a shell, but that is different from the behavior in other shells. In other shells, not specifying a command will give you an interactive shell. The current behavior (without the PR I submitted) when using rez-env in a windows CMD shell is to spawn a shell with the correct rez enviroment, but then immediately exit. |
There are different PRs doing similar things or tackling it slightly different. We definitely need to clean up the windows side of rez and rework the cmd plugin a bit. |
Fixed with #377 |
What is the preferred way of creating interactive rez environments?
I have several rez packages built and
rez env
is resolving them, but it doesn't seem to be applying them to the current shell (windows cmd).For example, I'm using
rez env
to build a context with therequests
python libraryRez appears to find and resolve the package, but it's not updating the
PYTHONPATH
in my shell.If I run the following command, it will launch a child shell and the packages are correctly applied. Is this how it is supposed to work -- that you have to launch a child process to apply the package environment?
The text was updated successfully, but these errors were encountered: