MCPcopy Create free account
hub / github.com/conda/constructor / ns_platform

Function ns_platform

constructor/construct.py:37–55  ·  view source on GitHub ↗
(platform)

Source from the content-addressed store, hash-verified

35
36
37def 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

Callers 6

make_docs.pyFile · 0.90
renderFunction · 0.85
make_nsiFunction · 0.85
get_headerFunction · 0.85
_build_messageMethod · 0.85
move_scriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected