Lines Matching full:python
22 """Finds an installed AOO from a path the user gives, reads its version, and finds a Python that ca…
180 # ---- a Python that can import uno ---------------------------------------------------------------…
190 """The Python framework path from `otool -L` output, or None."""
192 …m = re.match(r"\s*(\S*/Python\.framework/Versions/[\d.]+/Python|\S*/libpython[\d.]+\.dylib)\s", li…
221 m = re.search(r"(.*)/Python\.framework/Versions/([\d.]+)/Python$", linked)
223 d = Path(m.group(1)) / "Python.framework" / "Versions" / m.group(2) / "bin"
224 for n in ("python" + m.group(2), "python3"):
229 return which("python" + m.group(1)) if m else None
238 for n in ("python", "python.exe", "python3", "python.bin"):
241 for core in sorted(layout.program.glob("python-core-*")):
242 for n in ("bin/python3", "bin/python", "python.exe"):
249 out.append((sys.executable, "the Python running pytest"))
275 def probe(python, layout, runner=subprocess.run, timeout=60): argument
276 …"""(True, version) if `python` imports uno and pyuno against this install, else (False, reason)."""
278 …r = runner([python, "-c", PROBE_CODE], env=probe_env(layout), capture_output=True, text=True, time…
289 return False, "Python %s is older than %d.%d" % (ver, *MIN_WORKER_PYTHON)
328 raise NoUnoPython("no Python can import uno from %s%s" % (layout.program, need), tried, link)