Did I find the right examples for you? yes no

All Samples(36)  |  Call(33)  |  Derive(0)  |  Import(3)
Return a list of installed Distribution objects.

If ``local_only`` is True (default), only return installations
local to the current virtualenv, if in a virtualenv.

``skip`` argument is an iterable of lower-case project names to
ignore; defaults to ('setuptools', 'pip', 'python'). [FIXME also
skip virtualenv?]

If ``editables`` is False, don't report editables.(more...)

        def get_installed_distributions(local_only=True,
                                skip=('setuptools', 'pip', 'python', 'distribute'),
                                include_editables=True,
                                editables_only=False):
    """
    Return a list of installed Distribution objects.

    If ``local_only`` is True (default), only return installations
    local to the current virtualenv, if in a virtualenv.

    ``skip`` argument is an iterable of lower-case project names to
    ignore; defaults to ('setuptools', 'pip', 'python'). [FIXME also
    skip virtualenv?]

    If ``editables`` is False, don't report editables.

    If ``editables_only`` is True , only report editables.

    """
    if local_only:
        local_test = dist_is_local
    else:
        local_test = lambda d: True

    if include_editables:
        editable_test = lambda d: True
    else:
        editable_test = lambda d: not dist_is_editable(d)

    if editables_only:
        editables_only_test = lambda d: dist_is_editable(d)
    else:
        editables_only_test = lambda d: True

    return [d for d in pkg_resources.working_set
            if local_test(d)
            and d.key not in skip
            and editable_test(d)
            and editables_only_test(d)
            ]
        


src/p/i/pipdeptree-0.2/pipdeptree.py   pipdeptree(Download)
    args = parser.parse_args()
    default_skip = ['setuptools', 'pip', 'python', 'distribute']
    packages = pip.get_installed_distributions(local_only=args.local_only,
                                               skip=default_skip+['pipdeptree'])
    print(render_tree(packages, list_all=args.all))

src/j/a/jasy-1.5-beta6/jasy/core/Doctor.py   jasy(Download)
    Console.header("Doctor")
 
    dists = [dist for dist in pip.get_installed_distributions()]
    keys = [dist.key for dist in pip.get_installed_distributions()]
 
def doInitializationDoctor():
    """Checks for uninstalled or too old versions only of requirements and gives error output"""
 
    dists = [dist for dist in pip.get_installed_distributions()]
    keys = [dist.key for dist in pip.get_installed_distributions()]

src/j/a/jasy-HEAD/jasy/core/Doctor.py   jasy(Download)
    Console.header("Doctor")
 
    dists = [dist for dist in pip.get_installed_distributions()]
    keys = [dist.key for dist in pip.get_installed_distributions()]
 
def doInitializationDoctor():
    """Checks for uninstalled or too old versions only of needed requirements and gives error output"""
 
    dists = [dist for dist in pip.get_installed_distributions()]
    keys = [dist.key for dist in pip.get_installed_distributions()]

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django_extensions/management/commands/pipchecker.py   rolf(Download)
    def check_pypi(self):
        """
        If the requirement is frozen to pypi, check for a new version.
        """
        for dist in pip.get_installed_distributions():

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django_extensions/management/commands/pipchecker.py   antisocial(Download)
    def check_pypi(self):
        """
        If the requirement is frozen to pypi, check for a new version.
        """
        for dist in pip.get_installed_distributions():

src/p/i/pipdiff-0.1/pipdiff/pipdiff.py   pipdiff(Download)
def main():    
    try:
        from pip import get_installed_distributions
    except ImportError:
        from sys import exit
        exit("pip not available")
 
    for distribution in sorted(get_installed_distributions(),

src/w/3/w3af-HEAD/w3af/core/controllers/dependency_check/dependency_check.py   w3af(Download)
    import pip
    # We do this in order to check for really old versions of pip
    pip.get_installed_distributions()
except ImportError:
    print('We recommend you install pip before continuing.')
    #
    failed_deps = []
    if HAS_PIP: pip_distributions = pip.get_installed_distributions()
 
    for w3af_req in pip_packages:

src/t/o/Tortazo-HEAD/w3af/core/controllers/dependency_check/dependency_check.py   Tortazo(Download)
    import pip
    # We do this in order to check for really old versions of pip
    pip.get_installed_distributions()
except ImportError:
    print('We recommend you install pip before continuing.')
    #
    failed_deps = []
    if HAS_PIP: pip_distributions = pip.get_installed_distributions()
 
    for w3af_req in pip_packages:

src/d/j/django-djaboto-0.0.6a3/djaboto/management/commands/checkmix.py   django-djaboto(Download)
def check_available():
    import pip, xmlrpclib
 
    pypi = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
    for dist in pip.get_installed_distributions():

src/d/j/django-extensions-1.3.3/django_extensions/management/commands/pipchecker.py   django-extensions(Download)
    def check_pypi(self):
        """
        If the requirement is frozen to pypi, check for a new version.
        """
        for dist in pip.get_installed_distributions():

  1 | 2 | 3  Next