<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Perhaps pkg_resources.find_distributions()?</p>
    <p><a class="moz-txt-link-freetext" href="http://setuptools.readthedocs.io/en/latest/pkg_resources.html#getting-or-creating-distributions">http://setuptools.readthedocs.io/en/latest/pkg_resources.html#getting-or-creating-distributions</a><br>
    </p>
    <br>
    <div class="moz-cite-prefix">Jannis Gebauer kirjoitti 20.10.2017 klo
      16:55:<br>
    </div>
    <blockquote type="cite"
      cite="mid:BEF8CE18-C084-4556-A7A6-BFED5633654C@me.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Thanks for the heads-up, Paul.
      <div class=""><br class="">
      </div>
      <div class="">I’m currently using
        `pip.get_installed_distributions` and as far as I can see that
        has moved into `_internal`, too: <a
href="https://github.com/pypa/pip/blob/master/src/pip/_internal/utils/misc.py#L333"
          class="" moz-do-not-send="true">https://github.com/pypa/pip/blob/master/src/pip/_internal/utils/misc.py#L333</a></div>
      <div class=""><br class="">
      </div>
      <div class="">Any recommendations?</div>
      <div class=""><br class="">
      </div>
      <div class="">Thanks,</div>
      <div class=""><br class="">
      </div>
      <div class="">Jannis<br class="">
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On 20. Oct 2017, at 15:22, Paul Moore <<a
                href="mailto:p.f.moore@gmail.com" class=""
                moz-do-not-send="true">p.f.moore@gmail.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class="">We're in the process of starting to plan for
                a release of pip (the<br class="">
                long-awaited pip 10). We're likely still a month or two
                away from a<br class="">
                release, but now is the time for people to start
                ensuring that<br class="">
                everything works for them. One key change in the new
                version will be<br class="">
                that all of the internal APIs of pip will no longer be
                available, so<br class="">
                any code that currently calls functions in the "pip"
                namespace will<br class="">
                break. Calling pip's internal APIs has never been
                supported, and<br class="">
                always carried a risk of such breakage, so projects
                doing so should,<br class="">
                in theory, be prepared for such things. However, reality
                is not always<br class="">
                that simple, and we are aware that people will need time
                to deal with<br class="">
                the implications.<br class="">
                <br class="">
                Just in case it's not clear, simply finding where the
                internal APIs<br class="">
                have moved to and calling them under the new names is
                *not* what<br class="">
                people should do. We can't stop people calling the
                internal APIs,<br class="">
                obviously, but the idea of this change is to give people
                the incentive<br class="">
                to find a supported approach, not just to annoy people
                who are doing<br class="">
                things we don't want them to ;-)<br class="">
                <br class="">
                So please - if you're calling pip's internals in your
                code, take the<br class="">
                opportunity *now* to check out the in-development
                version of pip, and<br class="">
                ensure your project will still work when pip 10 is
                released.<br class="">
                <br class="">
                And many thanks to anyone else who helps by testing out
                the new<br class="">
                version, as well :-)<br class="">
                <br class="">
                Thanks,<br class="">
                Paul<br class="">
                _______________________________________________<br
                  class="">
                Distutils-SIG maillist  -  <a
                  href="mailto:Distutils-SIG@python.org" class=""
                  moz-do-not-send="true">Distutils-SIG@python.org</a><br
                  class="">
                <a
                  href="https://mail.python.org/mailman/listinfo/distutils-sig"
                  class="" moz-do-not-send="true">https://mail.python.org/mailman/listinfo/distutils-sig</a><br
                  class="">
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Distutils-SIG maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/distutils-sig">https://mail.python.org/mailman/listinfo/distutils-sig</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>