You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the reason: now both the monkeypatched finder provided by pex and the new setuptools finder find a distribution in the pex cache, thus len(distributions) == 2 even though the distributions are identical. for whatever reason, pex throws up its hands and returns None instead, causing PEXEnvironment.update_candidate_distributions to barf.
i have no idea why the code was written the way it was (senility has crept in), but if you replace list() with set() in order to dedupe and return distributions.pop(), things work regardless of setuptools version.
The text was updated successfully, but these errors were encountered:
wickman
added a commit
to wickman/pex
that referenced
this issue
Oct 28, 2016
* master:
Update README to reflect that linkedin's pygradle produces pex files (pex-tool#308)
Release 1.1.15
Fixpex-tool#309 by deduplicating output of the distribution finder. (pex-tool#310)
Update wheel dependency to >0.26.0 (pex-tool#304)
yay! this may obviate the need for pex/finders.py, except now the following breaks:
https://github.com/pantsbuild/pex/blob/85ef56ad/pex/util.py#L93
the reason: now both the monkeypatched finder provided by pex and the new setuptools finder find a distribution in the pex cache, thus len(distributions) == 2 even though the distributions are identical. for whatever reason, pex throws up its hands and returns None instead, causing PEXEnvironment.update_candidate_distributions to barf.
i have no idea why the code was written the way it was (senility has crept in), but if you replace list() with set() in order to dedupe and return distributions.pop(), things work regardless of setuptools version.
The text was updated successfully, but these errors were encountered: