witty-crayon-22786
11/16/2019, 1:56 AMself = <pants.ivy.bootstrapper.Bootstrapper object at 0x7f55bc7c8b38>
bootstrap_jar_path = '/home/nobody/.cache/pants/tools/jvm/ivy/bootstrap.jar'
def _bootstrap_ivy(self, bootstrap_jar_path):
options = self._ivy_subsystem.get_options()
if not os.path.exists(bootstrap_jar_path):
with temporary_file() as bootstrap_jar:
fetcher = Fetcher(get_buildroot())
checksummer = fetcher.ChecksumListener(digest=hashlib.sha1())
try:
<http://logger.info|logger.info>('\nDownloading {}'.format(options.bootstrap_jar_url))
# TODO: Capture the stdout of the fetcher, instead of letting it output
# to the console directly.
fetcher.download(options.bootstrap_jar_url,
listener=fetcher.ProgressListener().wrap(checksummer),
path_or_fd=bootstrap_jar,
> timeout_secs=options.bootstrap_fetch_timeout_secs)witty-crayon-22786
11/16/2019, 1:57 AM