MCPcopy
hub / github.com/pex-tool/pex / write

Method write

pex/pep_427.py:422–439  ·  view source on GitHub ↗
(
        self,
        dest,  # type: str
        wheel,  # type: Wheel
    )

Source from the content-addressed store, hash-verified

420 return iter(self.entry_info)
421
422 def write(
423 self,
424 dest, # type: str
425 wheel, # type: Wheel
426 ):
427 # type: (...) -> str
428 path = os.path.join(dest, wheel.pex_metadata_path(self.FILENAME))
429 with safe_open(path, "w") as fp:
430 json.dump(
431 {
432 "filename": self.filename,
433 "entries": [entry_info.to_json() for entry_info in self.entry_info],
434 },
435 fp,
436 sort_keys=True,
437 separators=(",", ":"),
438 )
439 return path
440
441
442@attr.s(frozen=True)

Callers 3

record_zip_metadataMethod · 0.45
create_whlFunction · 0.45
install_wheelFunction · 0.45

Calls 5

safe_openFunction · 0.90
to_jsonMethod · 0.80
joinMethod · 0.45
pex_metadata_pathMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected