<div dir="ltr"><div><div><div><div><div><div>Just another random idea: What about simply having two menu items in IDLE:<br></div><br></div><div>* Install/update package manager<br></div>* Open package manager<br><br></div>The first one will install the pipgui from PyPI (and pip if not already installed).<br></div>The second one will run the GUI.<br><br></div>This way it looks like pipgui can be simply published on PyPI without special-casing at all, or am I missing something?<br><br>--<br></div>Ivan<br><div><div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 November 2017 at 11:53, Nick Coghlan <span dir="ltr"><<a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On 2 November 2017 at 18:46, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
But unfortuately this hasn't been standardized, and there's currently<br>
no way to do the lookup from the stdlib, so maybe this is not so<br>
helpful for IDLE...<br></blockquote><div><br></div></span>The entry point file format was recently promoted to a PyPA interoperability spec (without a PEP, as we documented it as-is, rather than changing anything): <a href="https://packaging.python.org/specifications/entry-points/" target="_blank">https://packaging.python.org/<wbr>specifications/entry-points/</a></div><div class="gmail_quote"><br></div><div class="gmail_quote">While the point about the standard library lacking the ability to read the metadata for installed packages still stands, it's also not too hard to implement a rudimentary version that just iterates over sys.path looking for `entry_points.txt` files in `*.dist-info` subdirectories.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Cheers,</div><div class="gmail_quote">Nick.<br></div><span class=""><br>-- <br><div class="m_8230440629082718313gmail_signature">Nick Coghlan | <a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a> | Brisbane, Australia</div>
</span></div></div>
<br>______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/<wbr>codeofconduct/</a><br>
<br></blockquote></div><br></div>