<div dir="ltr"><div><br></div>cd ./lib/python2.7/site-packages/notebook-4.4.1.dist-info<br><div>cat metadata.json | python -m json.tool</div><div><br></div><div><div>{</div><div> "classifiers": [</div><div> "Intended Audience :: Developers",</div><div> "Intended Audience :: System Administrators",</div><div> "Intended Audience :: Science/Research",</div><div> "License :: OSI Approved :: BSD License",</div><div> "Programming Language :: Python",</div><div> "Programming Language :: Python :: 2.7",</div><div> "Programming Language :: Python :: 3"</div><div> ],</div><div> "extensions": {</div><div> "python.commands": {</div><div> "wrap_console": {</div><div> "jupyter-nbextension": "notebook.nbextensions:main",</div><div> "jupyter-notebook": "notebook.notebookapp:main",</div><div> "jupyter-serverextension": "notebook.serverextensions:main"</div><div> }</div><div> },</div><div> "python.details": {</div><div> "contacts": [</div><div> {</div><div> "email": "<a href="mailto:jupyter@googlegroups.com">jupyter@googlegroups.com</a>",</div><div> "name": "Jupyter Development Team",</div><div> "role": "author"</div><div> }</div><div> ],</div><div> "document_names": {</div><div> "description": "DESCRIPTION.rst"</div><div> },</div><div> "project_urls": {</div><div> "Home": "<a href="http://jupyter.org">http://jupyter.org</a>"</div><div> }</div><div> },</div><div> "python.exports": {</div><div> "console_scripts": {</div><div> "jupyter-nbextension": "notebook.nbextensions:main",</div><div> "jupyter-notebook": "notebook.notebookapp:main",</div><div> "jupyter-serverextension": "notebook.serverextensions:main"</div><div> }</div><div> }</div><div> },</div><div> "extras": [</div><div> "doc",</div><div> "test"</div><div> ],</div><div> "generator": "bdist_wheel (0.29.0)",</div><div> "keywords": [</div><div> "Interactive",</div><div> "Interpreter",</div><div> "Shell",</div><div> "Web"</div><div> ],</div><div> "license": "BSD",</div><div> "metadata_version": "2.0",</div><div> "name": "notebook",</div><div> "platform": "Linux",</div><div> "run_requires": [</div><div> {</div><div> "extra": "doc",</div><div> "requires": [</div><div> "Sphinx (>=1.1)"</div><div> ]</div><div> },</div><div> {</div><div> "requires": [</div><div> "ipykernel",</div><div> "ipython-genutils",</div><div> "jinja2",</div><div> "jupyter-client",</div><div> "jupyter-core",</div><div> "nbconvert",</div><div> "nbformat",</div><div> "tornado (>=4)",</div><div> "traitlets"</div><div> ]</div><div> },</div><div> {</div><div> "extra": "test",</div><div> "requires": [</div><div> "nose",</div><div> "requests"</div><div> ]</div><div> },</div><div> {</div><div> "environment": "python_version == \"2.7\"",</div><div> "extra": "test",</div><div> "requires": [</div><div> "mock"</div><div> ]</div><div> },</div><div> {</div><div> "environment": "sys_platform != \"win32\"",</div><div> "requires": [</div><div> "terminado (>=0.3.3)"</div><div> ]</div><div> }</div><div> ],</div><div> "summary": "A web-based notebook environment for interactive computing",</div><div> "version": "4.4.1"</div><div>}</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 29, 2017 at 3:19 PM, Wes Turner <span dir="ltr"><<a href="mailto:wes.turner@gmail.com" target="_blank">wes.turner@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"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Mar 29, 2017 at 1:55 PM, Thomas Kluyver <span dir="ltr"><<a href="mailto:thomas@kluyver.me.uk" target="_blank">thomas@kluyver.me.uk</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">I have a tool that does this from a wheel:<br>
<a href="https://github.com/takluyver/wheeldex" rel="noreferrer" target="_blank">https://github.com/takluyver/w<wbr>heeldex</a><br>
<br>
>From an sdist, I think you need to either build a wheel or install it<br>
before you can get this information reliably.<br></blockquote><div><br></div></span><div>Src: <a href="https://code.launchpad.net/~tseaver/pkginfo/trunk" target="_blank">https://code.launchpad.<wbr>net/~tseaver/pkginfo/trunk</a></div><div><br></div><div>PyPI: <a href="https://pypi.python.org/pypi/pkginfo" target="_blank">https://pypi.python.org/pypi/<wbr>pkginfo</a><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This package provides an API for querying the distutils metadata written in the PKG-INFO file inside a source distriubtion (an sdist) or a binary distribution (e.g., created by running bdist_egg). It can also query the EGG-INFO directory of an installed distribution, and the *.egg-info stored in a “development checkout” (e.g, created by running setup.py develop).<br></blockquote><div><br></div><div>Docs: <a href="https://pythonhosted.org/pkginfo/" target="_blank">https://pythonhosted.org/<wbr>pkginfo/</a> </div><div> </div><div><a href="https://bazaar.launchpad.net/~tseaver/pkginfo/trunk/files/head:/pkginfo/tests/" target="_blank">https://bazaar.launchpad.net/~<wbr>tseaver/pkginfo/trunk/files/<wbr>head:/pkginfo/tests/</a><br></div><div><div class="h5"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Some of my installed packages have a 'top_level.txt' file in the<br>
.dist-info folder, containing a list of the top-level package names<br>
installed by that distribution. I don't believe this is formally<br>
specified anywhere, though, and packages created by flit do not have it.<br>
<span class="m_6263408077492129344gmail-HOEnZb"><font color="#888888"><br>
Thomas<br>
</font></span><div class="m_6263408077492129344gmail-HOEnZb"><div class="m_6263408077492129344gmail-h5"><br>
On Wed, Mar 29, 2017, at 07:41 PM, Chris Jerdonek wrote:<br>
> Hi, this seems like a simple question, but I haven't been able to find<br>
> the answer online:<br>
><br>
> What is the current recommended way to get (1) the name of a project,<br>
> and (2) the names of the top-level packages installed by a project<br>
> (not counting the project's dependencies). You have access to / can<br>
> run the project's setup.py, and you're also allowed to assume that the<br>
> project is installed.<br>
><br>
> For example, for (1) I know you can do--<br>
><br>
> $ python setup.py --name<br>
><br>
> But I'm not sure if accessing setup.py is no longer recommended (as<br>
> opposed to going through a tool like pip).<br>
><br>
> Thanks a lot,<br>
> --Chris<br>
> ______________________________<wbr>_________________<br>
> Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org" target="_blank">Distutils-SIG@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/distutils-sig" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/distutils-sig</a><br>
______________________________<wbr>_________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org" target="_blank">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/distutils-sig</a><br>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>