File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,19 @@ def patch_init_py(
54
54
def patch_setup_py (path : Path ) -> None :
55
55
with open (path ) as f :
56
56
orig = f .read ()
57
- orig = check_and_replace (
58
- orig ,
59
- "https://tritonlang.blob.core.windows.net/llvm-builds/" ,
60
- "https://oaitriton.blob.core.windows.net/public/llvm-builds/" ,
61
- )
62
- with open (path , "w" ) as f :
63
- f .write (orig )
57
+ try :
58
+ orig = check_and_replace (
59
+ orig ,
60
+ "https://tritonlang.blob.core.windows.net/llvm-builds/" ,
61
+ "https://oaitriton.blob.core.windows.net/public/llvm-builds/" ,
62
+ )
63
+ with open (path , "w" ) as f :
64
+ f .write (orig )
65
+ except RuntimeError as e :
66
+ print (
67
+ f"Applying patch_setup_py() for llvm-build package failed: { e } ." ,
68
+ "If you are trying to build a newer version of Triton, you can ignore this." ,
69
+ )
64
70
65
71
66
72
def build_triton (
You can’t perform that action at this time.
0 commit comments