@@ -63,11 +63,22 @@ def isMG26(partnumber):
63
63
# If no gsdk path is set in the environment, use the standard path to the submodule
64
64
sisdk_root = os .path .join (root_path , "third_party/silabs/simplicity_sdk/" )
65
65
66
- # make sure we have a configured and trusted gsdk in slc
67
- subprocess .run (["slc" , "configuration" , "--sdk" , sisdk_root ], check = True )
68
- subprocess .run (["slc" , "signature" , "trust" , "--sdk" , sisdk_root ], check = True )
66
+ # SLC needs to run the system python, so we force PATH to have /usr/bin in front
67
+ # This is a workaround for CI builds failing with an odd `jinja2` module error when
68
+ # leaving the default paths enabled
69
+ cmds = f"""
70
+ set -ex
71
+
72
+ export PATH="/usr/bin:$PATH"
73
+
74
+ slc configuration --sdk '{ sisdk_root } '
75
+ slc signature trust --sdk '{ sisdk_root } '
76
+ slc generate '{ slcp_file_path } ' -d '{ output_path } ' --with '{ slc_arguments } '
77
+ """ .strip ()
69
78
70
- subprocess .run (["slc" , "generate" , slcp_file_path , "-d" , output_path , "--with" , slc_arguments ], check = True )
79
+
80
+ # make sure we have a configured and trusted gsdk in slc
81
+ subprocess .run (["bash" , "-c" , cmds ], check = True )
71
82
72
83
# cleanup of unwanted files
73
84
fileList = glob .glob (os .path .join (output_path , "matter-platform.*" ))
0 commit comments