<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 27, 2016 at 12:30 PM, Brett Cannon <span dir="ltr"><<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><span class=""><div dir="ltr">On Tue, 26 Jan 2016 at 14:36 Nathaniel Smith <<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Jan 25, 2016 at 8:37 PM, Robert T. McGibbon <<a href="mailto:rmcgibbo@gmail.com" target="_blank">rmcgibbo@gmail.com</a>> wrote:<br>
> I agree that this is an important detail. I generally use machines that have<br>
> many different Python interpreters installed (some distro-provided and<br>
> others in my home directory), and can easily imagine wanting them to have<br>
> different behavior w.r.t. manylinux1 wheels.<br>
><br>
> Perhaps the option could be put in site.py, or somewhere in<br>
> lib/pythonX.Y/configX.Y/? I'm not sure what the appropriate solution here<br>
> is.<br>
<br>
On further thought, the site.py solution has sorta grown on me...<br></blockquote><div><br></div></span><div>What if someone runs Python with `-S`?</div></div></div>
</blockquote></div><br></div><div class="gmail_extra">This would only matter if someone ran 'python -S -m pip', since pip is the only thing whose behavior would be affected by being able to see/not-see the special flag. Except of course 'python -S -m pip' doesn't work, because -S disables access to all non-stdlib packages, including pip (you just get "No module named pip"). Someone could make it work with sufficient brute force (e.g. manually manipulating $PYTHONPATH to point to pip), but I think at that point it can be assumed that they don't want our help anyway...<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Also if a distributor is really worried, then they could set the flag via some mechanism other than modifying <a href="http://site.py/sitecustomize.py">site.py/sitecustomize.py</a> -- in the email you're replying to, site.py was just a metonym for the general idea :-).<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-n<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Nathaniel J. Smith -- <a href="http://vorpus.org" target="_blank">https://vorpus.org</a></div></div></div>
</div></div>