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

[python-setuptools] --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64') #17049

Closed
3 of 7 tasks
radarhere opened this issue May 2, 2023 · 2 comments
Closed
3 of 7 tasks
Labels

Comments

@radarhere
Copy link

Description / Steps to reproduce the issue

I've created a branch at https://github.com/radarhere/Pillow/tree/setuptools_mingw_demo that demonstrates the error with GitHub Actions, from a simple Python script and relatively simple C script.

Expected behavior

At least not the error that I received.

If I've made a mistake in trying to create a simple demonstration, let me know.

Actual behavior

https://github.com/radarhere/Pillow/actions/runs/4860227968/jobs/8663795736#step:5:28

error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')

Googling, I found the error at pypa/pip#11258, where it was suggested that this is a package problem, not a problem with setuptools.

Verification

Windows Version

MINGW64_NT-10.0-20348

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

No response

@Biswa96
Copy link
Member

Biswa96 commented May 2, 2023

There is some known issues about incompatibility between mingw python and regular python for Windows. MOre info here https://www.msys2.org/docs/python/. Try to use the mingw python packages only.

@radarhere
Copy link
Author

I believe I am only using the MinGW Python packages, as if I don't install mingw-w64-x86_64-python3-pip, I get an error that pip is missing.

However, looking at that link, I noticed

setuptools >= 60.0 is currently incompatible with MSYS2. You can set export SETUPTOOLS_USE_DISTUTILS=stdlib to work around the issue. We are currently working on restoring compatibility.

And adding that setting solves the problem! Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants