MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / download

Method download

etc/scripts/utils_thirdparty.py:565–584  ·  view source on GitHub ↗

Download this distribution into `dest_dir` directory. Return the fetched filename.

(self, dest_dir=THIRDPARTY_DIR)

Source from the content-addressed store, hash-verified

563 )
564
565 def download(self, dest_dir=THIRDPARTY_DIR):
566 """
567 Download this distribution into `dest_dir` directory.
568 Return the fetched filename.
569 """
570 assert self.filename
571 if TRACE_DEEP:
572 print(
573 f"Fetching distribution of {self.name}=={self.version}:",
574 self.filename,
575 )
576
577 # FIXME:
578 fetch_and_save(
579 path_or_url=self.path_or_url,
580 dest_dir=dest_dir,
581 filename=self.filename,
582 as_text=False,
583 )
584 return self.filename
585
586 @property
587 def about_filename(self):

Callers 4

download_wheelFunction · 0.80
download_sdistFunction · 0.80
start_auto_updateMethod · 0.80
start_auto_updateMethod · 0.80

Calls 1

fetch_and_saveFunction · 0.85

Tested by

no test coverage detected