Skip to content

Don't change os.sep with an empty MSYSTEM env var, not just a missing one#107

Merged
lazka merged 2 commits into
msys2-contrib:mingw-v3.10.7from
lazka:allow-empty-msystem-too
Sep 23, 2022
Merged

Don't change os.sep with an empty MSYSTEM env var, not just a missing one#107
lazka merged 2 commits into
msys2-contrib:mingw-v3.10.7from
lazka:allow-empty-msystem-too

Conversation

@lazka

@lazka lazka commented Sep 22, 2022

Copy link
Copy Markdown
Member

Up until now this didn't really happen when calling from cygwin
because empty env vars were removed before Python would run.

But msys2/msys2-runtime#101 changed that.

To avoid breaking users that did something like

MSYSTEM= python ...

not only check that MSYSTEM isn't set but also that it isn't empty
when deciding if os.sep/os.altsep should be switched.

… one

Up until now this didn't really happen when calling from cygwin
because empty env vars were removed before Python would run.

But msys2/msys2-runtime#101 changed that.

To avoid breaking users that did something like

MSYSTEM= python ...

not only check that MSYSTEM isn't set but also that it isn't empty
when deciding if os.sep/os.altsep should be switched.
@lazka
lazka marked this pull request as ready for review September 23, 2022 07:06
@lazka
lazka merged commit 986f684 into msys2-contrib:mingw-v3.10.7 Sep 23, 2022
lazka added a commit to lazka/meson that referenced this pull request Sep 23, 2022
…eparator behaviour"

This reverts commit 3fd2459.

The underlying issue has been fixed and deployed:
msys2-contrib/cpython-mingw#107
xclaesse pushed a commit to mesonbuild/meson that referenced this pull request Sep 23, 2022
…eparator behaviour"

This reverts commit 3fd2459.

The underlying issue has been fixed and deployed:
msys2-contrib/cpython-mingw#107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant