()
| 34 | |
| 35 | |
| 36 | def get_plat(): |
| 37 | plat = sysconfig.get_platform() |
| 38 | plat_split = plat.split("-") |
| 39 | arch = plat_split[-1] |
| 40 | if arch == "win32": |
| 41 | plat = "win-32" |
| 42 | elif arch in ["universal2", "intel"]: |
| 43 | plat = f"macosx-{platform.uname().machine}" |
| 44 | elif len(plat_split) > 2: |
| 45 | plat = f"{plat_split[0]}-{arch}" |
| 46 | assert plat in SUPPORTED_PLATFORMS, f'invalid platform {plat}' |
| 47 | return plat |
| 48 | |
| 49 | |
| 50 | def get_ilp64(): |