GithubHelp home page GithubHelp logo

Comments (2)

konradpabjan avatar konradpabjan commented on June 4, 2024

We add MinGW to PATH by design. We use choco install -y mingw to install it. This was added mostly to support GCC and make. It's rather an unintended consequence that Python 2.7 also gets added to PATH.

Whatever is in hostedtoolcache is Python that we manage ourselves. For Linux and Mac this is Python that we compile while for Windows we download it directly from https://www.python.org/downloads/windows/ so it doesn't make sense to throw in another distribution here.

It is possible to manually remove a variable from PATH without too much effort using Powershell on Windows so that's the best I can recommend if this is a blocker. Setup-python is only really meant to manipulate the PATH for the versions of python that are in hostedtoolcache

from setup-python.

sbc100 avatar sbc100 commented on June 4, 2024

Yes, its really that "unintended consequence" that is the problem.

I quite like to keep mingw in the path, but ideally without a broken python2.7 in there. I is there a way you can install mingw without python?

(Its unfortunate that the windows python distribution doesn't include "python2.7.exe" as well as "python.exe" since then putting your python path first would cause it to override the mingw one, which would be desirable)

from setup-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.