@@ -287,24 +287,24 @@ def _build_musica(clone_dest: str) -> str:
287
287
subprocess .run (command , stdout = subprocess .PIPE , stderr = subprocess .PIPE ,
288
288
text = True , check = False )
289
289
except subprocess .CalledProcessError as e :
290
- raise subprocess .CalledProcessError (f "The subprocess for cmake \
290
+ raise subprocess .CalledProcessError ("The subprocess for cmake \
291
291
to configure the MUSICA CMake project failed." ) from e
292
292
except FileNotFoundError as e :
293
- raise FileNotFoundError (f "The 'cmake' command was not found." ) from e
293
+ raise FileNotFoundError ("The 'cmake' command was not found." ) from e
294
294
except OSError as e :
295
- raise OSError (f "An error occurred while executing the 'cmake' command." ) from e
295
+ raise OSError ("An error occurred while executing the 'cmake' command." ) from e
296
296
297
297
command = ["cmake" , "--build" , "." , "--target" , "install" ]
298
298
try :
299
299
subprocess .run (command , stdout = subprocess .PIPE , stderr = subprocess .PIPE ,
300
300
text = True , check = False )
301
301
except subprocess .CalledProcessError as e :
302
- raise subprocess .CalledProcessError (f "The subprocess for cmake \
302
+ raise subprocess .CalledProcessError ("The subprocess for cmake \
303
303
to build the MUSICA library failed." ) from e
304
304
except FileNotFoundError as e :
305
- raise FileNotFoundError (f "The 'cmake' command was not found." ) from e
305
+ raise FileNotFoundError ("The 'cmake' command was not found." ) from e
306
306
except OSError as e :
307
- raise OSError (f "An error occurred while executing the 'cmake' command." ) from e
307
+ raise OSError ("An error occurred while executing the 'cmake' command." ) from e
308
308
309
309
os .chdir (current_dir )
310
310
musica_install_path = os .path .join (bld_path , install_dir )
@@ -341,7 +341,7 @@ def _download_musica_configuration(download_dest: str) -> None:
341
341
except PermissionError as e :
342
342
raise PermissionError (f"Permission denied to rename '{ original_dir } '." ) from e
343
343
except OSError as e :
344
- raise OSError (f "An error occurred while renaming." ) from e
344
+ raise OSError ("An error occurred while renaming." ) from e
345
345
346
346
musica_config_path = os .path .join (download_dest , musica_config_dir_name )
347
347
if os .path .exists (musica_config_path ):
@@ -379,12 +379,12 @@ def _set_musica_lib_path(musica_install_path: str, caseroot: str) -> None:
379
379
subprocess .run (command , stdout = subprocess .PIPE , stderr = subprocess .PIPE ,
380
380
text = True , check = False )
381
381
except subprocess .CalledProcessError as e :
382
- raise subprocess .CalledProcessError (f "The subprocess for xmlchange \
382
+ raise subprocess .CalledProcessError ("The subprocess for xmlchange \
383
383
to set the MUSICA library path failed." ) from e
384
384
except FileNotFoundError as e :
385
- raise FileNotFoundError (f "The 'xmlchange' command was not found." ) from e
385
+ raise FileNotFoundError ("The 'xmlchange' command was not found." ) from e
386
386
except OSError as e :
387
- raise OSError (f "An error occurred while executing the 'xmlchange' command." ) from e
387
+ raise OSError ("An error occurred while executing the 'xmlchange' command." ) from e
388
388
389
389
os .chdir (current_dir )
390
390
@@ -416,9 +416,9 @@ def _clone_and_checkout(repo_url: str, tag_name: str, clone_dest: str) -> None:
416
416
raise subprocess .CalledProcessError (f"The subprocess for git \
417
417
to clone the repository { repo_url } failed." ) from e
418
418
except FileNotFoundError as e :
419
- raise FileNotFoundError (f "The 'git' command was not found." ) from e
419
+ raise FileNotFoundError ("The 'git' command was not found." ) from e
420
420
except OSError as e :
421
- raise OSError (f "An error occurred while executing the 'git' command." ) from e
421
+ raise OSError ("An error occurred while executing the 'git' command." ) from e
422
422
423
423
try :
424
424
subprocess .run (["git" , "-C" , repo_path , "checkout" , tag_name ],
@@ -427,9 +427,9 @@ def _clone_and_checkout(repo_url: str, tag_name: str, clone_dest: str) -> None:
427
427
raise subprocess .CalledProcessError (f"The subprocess for git \
428
428
to checkout the branch { tag_name } failed." ) from e
429
429
except FileNotFoundError as e :
430
- raise FileNotFoundError (f "The 'git' command was not found." ) from e
430
+ raise FileNotFoundError ("The 'git' command was not found." ) from e
431
431
except OSError as e :
432
- raise OSError (f "An error occurred while executing the 'git' command." ) from e
432
+ raise OSError ("An error occurred while executing the 'git' command." ) from e
433
433
434
434
###############################################################################
435
435
0 commit comments