<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Nov 9, 2015 at 3:27 AM, James Bennett <span dir="ltr"><<a href="mailto:ubernostrum@gmail.com" target="_blank">ubernostrum@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Python scripts directly and without having to do hackery with supporting/requiring 'python -m' or similar is too useful and commonly used. So faced with either (essentially) forcing a trend of every command-line tool having to be invoked with 'python -m',</div></blockquote><div><br></div><div>pip is a special case -- for MOST python command line tools, the user does not care which python it is running with -- if it works, it works.</div><div><br></div><div>the failure case we are trying to address here is when "pip install" works sjtu fine -- it finds and installs the package into the python pip is associated with -- it just doesn't do what the user wants and expects!</div><div><br></div><div>any other script can be run with any python that will work -- if a user has ten different versions of python installed, and every different python-bsed tool they use uses a different one -- who cares, as long as it works.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div> or requiring people with complex multi-Python installations to be more careful, I choose the "be more careful" option (i.e., I would strenuously resist changing Django's admin script to "python -m django" if this were proposed to Django today).<span></span></div>
</blockquote></div><div class="gmail_extra"><br></div><div class="gmail_extra">Well, the exception to the above is people developing those scripts, but they should know better -- and so should a sysadmin instaling a django app.</div><div class="gmail_extra"><br></div><div class="gmail_extra">-CHB</div><div class="gmail_extra"><br></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>