[TIP] suggestion to change tox's --pre defaults
holger at merlinux.eu
Tue Oct 21 07:39:11 PDT 2014
On Fri, Oct 17, 2014 at 15:25 +0100, Paul Moore wrote:
> On 7 October 2014 00:52, Carl Meyer <carl at oddbird.net> wrote:
> >> If everybody is fine with that and Carl still offers to write
> >> a little PR implementing it, I'd be glad to review and incorporate it.
> > https://bitbucket.org/hpk42/tox/pull-request/123/add-pre-and-testenv-pip_pre-options-no-pre/diff
> Would it be possible to also change the install command to use "python
> -m pip" rather than "pip"? On Windows, if the install upgrades pip,
> that will attempt to replace the running pip.exe wrapper, which will
> then fail because it's in use by the OS. Using "python -m pip" avoids
> this issue and is portable. It's a minor point, but it saves a hard to
> diagnose error (it took me a while to work out what was going on, and
> I am very familiar with this issue!!!)
makes sense i think. I just merged Carl's PR.
Could you do a PR changing to "python -m pip"?
I presume this works on python2.6 as well.
More information about the testing-in-python