1 --- a/src/zc/buildout/buildout.py 2017-08-18 10:06:24.946428977 +0300
2 +++ b/src/zc/buildout/buildout.py 2017-08-18 10:08:49.115613364 +0300
7 + # Override versions with available (nix) system packages
8 + for dist in pkg_resources.working_set:
9 + versions[dist.project_name] = SectionKey(dist.version, dist.location)
11 # Absolutize some particular directory, handling also the ~/foo form,
12 # and considering the location of the configuration file that generated
13 # the setting as the base path, falling back to the main configuration
14 --- a/src/zc/buildout/easy_install.py 2017-08-18 10:06:24.948428980 +0300
15 +++ b/src/zc/buildout/easy_install.py 2017-08-18 10:07:37.462521740 +0300
18 def _satisfied(self, req, source=None):
19 dists = [dist for dist in self._env[req.project_name] if dist in req]
21 + dists = ([dist for dist in dists
22 + if dist.precedence == pkg_resources.DEVELOP_DIST]
23 + + [pkg_resources.get_distribution(req.project_name)])
24 + except pkg_resources.DistributionNotFound:
27 logger.debug('We have no distributions for %s that satisfies %r.',
28 req.project_name, str(req))