1

I'm trying out WinPython as an option to recommend to users who need to run my Python software. Crucially, distutils needs to work with MinGW.

WinPython includes mingwpy and provides a gcc.exe in the Python scripts directory. When checking os.environ I can see that this directory is added to the (temporary) path environment variable.

Unfortunately, distutils still can't find gcc. Does anyone know if there is a way to make distutils find the included gcc file without making changes to the system?

1 Answer 1

1

Ok, figured it out. If you run the python.exe included with winpython it doesn't set the environment variables and so won't find gcc. If you run the special WinPython.exe it will set the variables and everything works fine.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.