소스 검색

fix uv for arm64 macOS

raylu 1 개월 전
부모
커밋
324500b876
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      install_extras.py

+ 4 - 2
install_extras.py

@@ -355,9 +355,11 @@ def uv():
 		return
 
 	client = httpx.Client()
-	os = platform.system().lower()
 	arch = platform.machine()
-	if arch == 'darwin':
+	if arch == 'arm64':
+		arch = 'aarch64'
+	os = platform.system().lower()
+	if os == 'darwin':
 		prefix = f'uv-{arch}-apple-darwin'
 	else:
 		prefix = f'uv-{arch}-unknown-linux-gnu'