-
Notifications
You must be signed in to change notification settings - Fork 694
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
fix to #1079 #1080
base: main
Are you sure you want to change the base?
fix to #1079 #1080
Conversation
Interesting.. it looks like we already have special case in place for when we actually construct the path: Lines 2652 to 2653 in 5ad3ff0
We are running the CI here with windows python running under bash.exe.. and it seems that python.exe (the windows version) is sees an incoming path that has windows separators. |
Oh Interesting, yeah then maybe a special check like that should be used instead here: Line 2623 in 5ad3ff0
That means that this line currently shouln't work for msys though, right? |
Another idea I had was to just try both or check to see if we find a ':' or ';' in the PATH string, but I guess that may be not that robust. |
I wonder if just Can you confirm if that works here? |
i.e. what does os.name and os.pathsep return for your cygwin version of python? |
Maybe we don't need ENVPATH_SEPARATOR at all and we can just use |
Also, what does |
Sorry that I took so long to answer ':) as to your ideas, I think that might be the way to go. the python related stuff you asked:
so yeah I guess that should work :) |
I didn't know |
One problem is that sometimes folks use windows python inside a mingw shell. This means So, we have two different path setups
|
What do you mean by create_env exactly? |
Sorry I meant |
what bash do you mean in the context of mingw, the one from git? Or does mingw has its own bash? I'm not too well versed with mingw ':) |
if thats the bash you mean, then yeah there is defenitly a problem as python says 'nt' for name and pathsep is ';' so that wont work for constructing a path, since this bash uses ':'. Currently I would think that maybe we should do the parsing of the current path with os.pathsep and then for constructing we still need to somehow find the right seperator. |
one idea I have is to maybe just set an environment variable in the activate.bat file and then check for that in python? The bat file should be the only case where a ';' seperated path is needed, right? |
This isn't the exact fix described in the issue, but I figured it would make more sense to test if we are using bash?