(vcpkg_root, triplet="x64-windows-meshlib")
| 17 | return None |
| 18 | |
| 19 | def detect_vcpkg_python_version(vcpkg_root, triplet="x64-windows-meshlib"): |
| 20 | include_dir = vcpkg_root / "installed" / triplet / "include" |
| 21 | if include_dir.exists(): |
| 22 | for entry in include_dir.iterdir(): |
| 23 | match = re.match(r"python3\.(\d+)", entry.name) |
| 24 | if match: |
| 25 | minor_version = match.group(1) |
| 26 | return f"3.{minor_version}" |
| 27 | return None |
| 28 | |
| 29 | parser = argparse.ArgumentParser(description="Python Test Script") |
| 30 |
no test coverage detected