Skip to content

Commit

Permalink
Added docstring and defaults to resolve_multi().
Browse files Browse the repository at this point in the history
- Added docstring to ``resolve_multi()``.
- Added defaults for ``interpreters`` and ``platforms`` params if
  nothing is specified.
  • Loading branch information
jjjake authored and mzdaniel committed May 22, 2016
1 parent f925c0c commit 4a68e42
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pex/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,23 @@ def resolve_multi(requirements,
precedence=None,
cache=None,
cache_ttl=None):


"""Produce all distributions needed to (recursively) meet `requirements` for multiple
interpreters and/or platforms.
:keyword interpreters: (optional) An iterable of :class:`PythonInterpreter` objects to use
for building distributions and for testing distribution compatibility.
:keyword platforms: (optional) An iterable of PEP425-compatible platform strings to use for
filtering compatible distributions. If unspecified, the current platform is used, as
determined by `Platform.current()`.
This method is just a wrapper around the :func:`resolver` method for resolving requirements
for multiple interpreters and/or platforms.
"""

platforms = platforms or [Platform.current()]
interpreters = interpreters or [PythonInterpreter.get()]

resolveds = list()
for platform in platforms:
for interpreter in interpreters:
Expand Down

0 comments on commit 4a68e42

Please sign in to comment.