(platform)
| 35 | |
| 36 | |
| 37 | def ns_platform(platform): |
| 38 | p = platform |
| 39 | return dict( |
| 40 | linux=p.startswith("linux-"), |
| 41 | linux32=bool(p == "linux-32"), |
| 42 | linux64=bool(p == "linux-64"), |
| 43 | armv7l=bool(p == "linux-armv7l"), |
| 44 | aarch64=bool(p == "linux-aarch64"), |
| 45 | ppc64le=bool(p == "linux-ppc64le"), |
| 46 | arm64=bool(p == "osx-arm64"), |
| 47 | s390x=bool(p == "linux-s390x"), |
| 48 | x86=p.endswith(("-32", "-64")), |
| 49 | x86_64=p.endswith("-64"), |
| 50 | osx=p.startswith("osx-"), |
| 51 | unix=p.startswith(("linux-", "osx-")), |
| 52 | win=p.startswith("win-"), |
| 53 | win32=bool(p == "win-32"), |
| 54 | win64=bool(p == "win-64"), |
| 55 | ) |
| 56 | |
| 57 | |
| 58 | # This regex is taken from https://github.com/conda/conda_build/metadata.py |
no outgoing calls
no test coverage detected