![]() logging import get_logger EXTENSION = '.exe' if platform. system () = 'Windows' else '' def determine_linux_arch () -> str : machine = platform. machine () arch = "" if machine = "aarch64" : arch = "arm64" elif machine = "armv7l" : # Telling armel and armhf apart is nontrivial # c.f. run (, check = True, stdout = subprocess. PIPE, text = True, ) if "Tag_ABI_VFP_args" in readelf. stdout : arch = "armel" else : arch = "armhf" elif machine = "mips64" : arch = "mips64el" elif machine = "ppc64el" or machine = "ppc64le" : arch = "ppc64el" elif machine = "s390x" : arch = "s390x" return arch def get_download_url ( version : str ) -> str : arch = os. ![]() get ( "CMDSTAN_ARCH", "" ) if not arch and platform. system () = "Linux" : arch = determine_linux_arch () if arch and arch. Lower () != "false" : url_end = f 'v /bin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |