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

Fix typo in #3713 #4482

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Fix typo in #3713 #4482

merged 1 commit into from
Oct 8, 2021

Conversation

s0600204
Copy link
Contributor

@s0600204 s0600204 commented Sep 7, 2021

When running python within the various shells made available on Windows by MSys2, sysconfig.get_platform() returns:

  • MSys2 : msys-3.2.0-x86-64
  • MinGW x32 : mingw_i686
  • MinGW x64 : mingw_x86_64
  • MinGW UCRT64 : mingw_x86_64_ucrt
  • MinGW Clang64 : mingw_x86_64_clang

In the case that sysconfig.get_platform() does return mingw (with no suffix), this change should still support that.

Pull Request Check List

Related: #3713

  • Added tests for changed code.
    - I think a test for this would require a suitable CI environment (Windows+MinGW) to be set up. However setting that up is a bit beyond the scope of this PR, related as it may be.
  • Updated documentation for changed code.
    - No documentation change needed.

When running `python` within the various shells made available on Windows by
MSys2, `sysconfig.get_platform()` returns:

* MSys2         : `msys-3.2.0-x86-64`
* MinGW x32     : `mingw_i686`
* MinGW x64     : `mingw_x86_64`
* MinGW UCRT64  : `mingw_x86_64_ucrt`
* MinGW Clang64 : `mingw_x86_64_clang`

In the case that `sysconfig.get_platform()` *does* return `mingw` (with no
suffix), this change should still work as expected.
@s0600204
Copy link
Contributor Author

s0600204 commented Sep 7, 2021

For those that don't have access to a Windows+MinGW system, here's a table of shells and what various python lines respond with when run from within those shells:

shell          sys.platform  sysconfig.get_platform()  platform.system()   os.name
-------------  ------------  ------------------------  ------------------  -------
cmd.exe        win32         win32                     Windows             nt
MSys2          cygwin        msys-3.2.0-x86-64         MSYS_NT-10.0-16299  posix
MinGW x32      win32         mingw_i686                Windows             nt
MinGW x64      win32         mingw_x86_64              Windows             nt
MinGW UCRT64   win32         mingw_x86_64_ucrt         Windows             nt
MinGW Clang64  win32         mingw_x86_64_clang        Windows             nt

@abn abn merged commit ee67aa8 into python-poetry:master Oct 8, 2021
@s0600204 s0600204 deleted the win-mingw branch November 7, 2021 16:33
@finswimmer finswimmer mentioned this pull request Mar 6, 2022
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants