MCPcopy Index your code
hub / github.com/ekalinin/nodeenv / get_node_bin_url

Function get_node_bin_url

nodeenv.py:549–579  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

547
548
549def get_node_bin_url(version):
550 archmap = {
551 'x86': 'x86', # Windows Vista 32
552 'i686': 'x86',
553 'x86_64': 'x64', # Linux Ubuntu 64
554 'amd64': 'x64', # FreeBSD 64bits
555 'amd64': 'x64', # Windows Server 2012 R2 (x64)
556 'armv6l': 'armv6l', # arm
557 'armv7l': 'armv7l',
558 'armv8l': 'armv7l',
559 'aarch64': 'arm64',
560 'arm64': 'arm64',
561 'arm64/v8': 'arm64',
562 'armv8': 'arm64',
563 'armv8.4': 'arm64',
564 'ppc64le': 'ppc64le', # Power PC
565 's390x': 's390x', # IBM S390x
566 'riscv64': 'riscv64', # RISCV 64
567 }
568 sysinfo = {
569 'system': platform.system().lower(),
570 'arch': archmap[platform.machine().lower()],
571 }
572 if is_WIN or is_CYGWIN:
573 postfix = '-win-%(arch)s.zip' % sysinfo
574 elif is_x86_64_musl():
575 postfix = '-linux-x64-musl.tar.gz'
576 else:
577 postfix = '-%(system)s-%(arch)s.tar.gz' % sysinfo
578 filename = 'node-v%s%s' % (version, postfix)
579 return get_root_url(version) + filename
580
581
582def get_node_src_url(version):

Callers 1

install_node_wrappedFunction · 0.85

Calls 2

is_x86_64_muslFunction · 0.85
get_root_urlFunction · 0.85

Tested by

no test coverage detected