<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 5:46 PM, Steve Dower <span dir="ltr"><<a href="mailto:steve.dower@python.org" target="_blank">steve.dower@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 class="HOEnZb"><div class="h5">On 01Mar2016 0524, Paul Moore wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 1 March 2016 at 11:37, David Cournapeau <<a href="mailto:cournape@gmail.com" target="_blank">cournape@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am not clear about 3., especially on what should be changed. I know that<br>
for 2.7, we need to change PC\getpathp.c for sys.path, but are there any<br>
other places where the registry is used by python itself ?<br>
</blockquote>
<br>
My understanding from the earlier discussion was that you should not<br>
patch Python at all. The sys.path building via PythonPath is not<br>
covered by the PEP and you should continue as at present. The new keys<br>
are all for informational purposes - your installer should write to<br>
them, and read them if looking for your installations. But the Python<br>
interpreter itself should not know or care about your new keys.<br>
<br>
Steve can probably clarify better than I can, but that's how I recall<br>
it being intended to work.<br>
Paul<br>
</blockquote>
<br></div></div>
Yes, the intention was to not move sys.path building out of the PythonCore key. It's solely about discovery by external tools.<br></blockquote><div><br></div><div>Right. For us, continuing populating sys.path from the registry "owned" by <a href="http://python.org">python.org</a> official installers is more and more untenable, because every distribution writes there, and this is especially problematic when you have both 32 bits and 64 bits distributions in the same machine.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you want to patch your own distribution to move the paths you are welcome to do that - there is only one string literal in getpathp.c that needs to be updated - but it's not a requirement and I deliberately avoided making a recommendation either way. (Though as discussed earlier in the thread, I'm very much in favour of deprecating and removing any use of the registry by the runtime itself in 3.6+, but still working out the implications of that.)<br></blockquote><div><br></div><div>Great, I just wanted to make sure removing it ourselves do not put us in a corner or further away from where python itself is going.</div><div><br></div><div>Would it make sense to indicate in the PEP that doing so is allowed (neither recommended or frowned upon) ?</div><div><br></div><div>David</div></div></div></div>