Lines Matching +full:resolve +full:- +full:from
2 Generates a layout of Python for Windows from a build.
4 See python make_layout.py --help for usage.
20 from pathlib import Path
24 __path__ = [str(Path(__file__).resolve().parent)]
26 from .support.appxmanifest import *
27 from .support.catalog import *
28 from .support.constants import *
29 from .support.filesets import *
30 from .support.logging import *
31 from .support.options import *
32 from .support.pip import *
33 from .support.props import *
34 from .support.nuspec import *
113 with open(ns.build / "TCL_LIBRARY.env", "r", encoding="utf-8-sig") as f:
147 yield from in_build("python_uwp.exe", new_name="python{}".format(VER_DOT))
148 yield from in_build("pythonw_uwp.exe", new_name="pythonw{}".format(VER_DOT))
150 yield from in_build("python_uwp.exe", new_name="python")
151 yield from in_build("pythonw_uwp.exe", new_name="pythonw")
153 yield from in_build("python.exe", new_name="python")
154 yield from in_build("pythonw.exe", new_name="pythonw")
156 yield from in_build(PYTHON_DLL_NAME)
160 yield from in_build("python_uwp.exe", new_name="pip{}".format(VER_DOT))
162 yield from in_build("pythonw_uwp.exe", new_name="idle{}".format(VER_DOT))
165 yield from in_build(PYTHON_STABLE_DLL_NAME)
186 yield from in_build(src.name, dest="" if ns.flat_dlls else "DLLs/")
196 yield from in_build("venvlauncher.exe", "Lib/venv/scripts/nt/", "python")
197 yield from in_build("venvwlauncher.exe", "Lib/venv/scripts/nt/", "pythonw")
284 # name argument added to address bpo-37641
305 from lib2to3.pgen2.driver import load_grammar
348 with open(ns.temp / PYTHON_PTH_NAME, "w", encoding="utf-8") as f:
355 print("Lib/site-packages", file=f)
413 log_debug("Copy {} -> {}", src, ns.copy / dest)
440 log_debug("Copy {} -> {}", src, ns.copy / dest)
481 parser.add_argument("-v", help="Increase verbosity", action="count")
483 "-s",
484 "--source",
491 "-b", "--build", metavar="dir", help="Specify the build directory", type=Path
494 "--arch",
501 "--doc-build",
508 "--copy",
515 "--zip",
522 "--catalog",
529 "--log",
536 "-t",
537 "--temp",
544 "-d", "--debug", help="Include debug build", action="store_true"
547 "-p",
548 "--precompile",
553 "-z", "--zip-lib", help="Include library in a ZIP file", action="store_true"
556 "--flat-dlls", help="Does not create a DLLs directory", action="store_true"
559 "-a",
560 "--include-all",
565 "--include-cat",
577 ns.source = ns.source or (Path(__file__).resolve().parent.parent.parent)
582 ns.source = (Path.cwd() / ns.source).resolve()
584 ns.build = (Path.cwd() / ns.build).resolve()
586 ns.temp = (Path.cwd() / ns.temp).resolve()
588 ns.doc_build = (Path.cwd() / ns.doc_build).resolve()
590 ns.include_cat = (Path.cwd() / ns.include_cat).resolve()
595 ns.copy = (Path.cwd() / ns.copy).resolve()
597 ns.zip = (Path.cwd() / ns.zip).resolve()
599 ns.catalog = (Path.cwd() / ns.catalog).resolve()
617 log_error("--arch is not a valid value (win32, amd64, arm32, arm64)")
622 log_warning(f"Disabling --{n.replace('_', '-')} on unsupported platform")
626 log_warning("Assuming --include-tcltk to support --include-idle")