MCPcopy Create free account
hub / github.com/python/cpython / get_appx_layout

Function get_appx_layout

PC/layout/support/appxmanifest.py:493–518  ·  view source on GitHub ↗
(ns)

Source from the content-addressed store, hash-verified

491
492
493def get_appx_layout(ns):
494 if not ns.include_appxmanifest:
495 return
496
497 yield "AppxManifest.xml", ("AppxManifest.xml", get_appxmanifest(ns))
498 yield "_resources.xml", ("_resources.xml", get_resources_xml(ns))
499 icons = ns.source / "PC" / "icons"
500 for px in [44, 50, 150]:
501 src = icons / "pythonx{}.png".format(px)
502 yield f"_resources/pythonx{px}.png", src
503 yield f"_resources/pythonx{px}$targetsize-{px}_altform-unplated.png", src
504 for px in [44, 150]:
505 src = icons / "pythonwx{}.png".format(px)
506 yield f"_resources/pythonwx{px}.png", src
507 yield f"_resources/pythonwx{px}$targetsize-{px}_altform-unplated.png", src
508 if ns.include_idle and ns.include_launchers:
509 for px in [44, 150]:
510 src = icons / "idlex{}.png".format(px)
511 yield f"_resources/idlex{px}.png", src
512 yield f"_resources/idlex{px}$targetsize-{px}_altform-unplated.png", src
513 yield f"_resources/py.png", icons / "py.png"
514 sccd = ns.source / SCCD_FILENAME
515 if sccd.is_file():
516 # This should only be set for side-loading purposes.
517 sccd = _fixup_sccd(ns, sccd, os.getenv("APPX_DATA_SHA256"))
518 yield sccd.name, sccd

Callers 1

get_layoutFunction · 0.85

Calls 5

get_appxmanifestFunction · 0.85
get_resources_xmlFunction · 0.85
_fixup_sccdFunction · 0.85
formatMethod · 0.45
is_fileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…