Lines Matching full:python

22 """install.py against fake macOS, Linux and Windows trees, and the UNO Python search with a faked p…
122 \t/opt/local/Library/Frameworks/Python.framework/Versions/3.14/Python (compatibility version 3.14.0…
129 …install.parse_otool(OTOOL) == "/opt/local/Library/Frameworks/Python.framework/Versions/3.14/Python"
136 fw = tmp_path / "Library/Frameworks/Python.framework/Versions/3.14"
138 linked = str(fw / "Python")
155 def prober(python, layout): argument
156 asked.append(python)
157 return (True, "3.14.0") if python in passing else (False, "No module named 'uno'")
166 (top / "program" / "python").write_text("x")
167 py = str(top / "program" / "python")
170 assert res.path == py and res.source == "bundled program/python" and asked == [py]
175 fw = tmp_path / "fw/Python.framework/Versions/3.14"
178 lay, asked, find = searcher(top, {str(fw / "bin" / "python3.14")}, linked=str(fw / "Python"))
186 (top / "program" / "python").write_text("x")
187 lay, asked, find = searcher(top, {str(top / "program" / "python")})
189 find(explicit="/nonexistent/python")
190 assert asked == ["/nonexistent/python"] and e.value.tried[0][1] == "explicit"
194 …lay, asked, find = searcher(fake("posix"), {"/my/python"}, environ={"AOO_UNO_PYTHON": "/my/python"…
196 assert res.path == "/my/python" and res.source == "explicit" and asked == ["/my/python"]
200 …ke("macos"), set(), linked="/nonexistent/Library/Frameworks/Python.framework/Versions/3.14/Python")
203 …assert "/nonexistent/Library/Frameworks/Python.framework/Versions/3.14/Python (not found on this m…
208 cache = tmp_path / "uno-python.json"
222 lay, asked, find = searcher(fake("posix"), {sys.executable, "/other/python"})
225 …assert find(cache_file=cache, explicit="/other/python").path == "/other/python" and len(asked) == …
246 assert install.probe("/p/python", lay, runner=run) == (True, "3.14.0")
251 …assert run.seen["cmd"][:2] == ["/p/python", "-c"] and "import sys, uno, pyuno" in run.seen["cmd"][…