@@ -59,22 +59,19 @@ def install_environment(
5959
6060 # Determine tool from the packaged file <tool_name>.<version>.nupkg
6161 build_outputs = os .listdir (os .path .join (prefix .prefix_dir , build_dir ))
62- if len (build_outputs ) != 1 :
63- raise NotImplementedError (
64- f"Can't handle multiple build outputs. Got { build_outputs } " ,
62+ for output in build_outputs :
63+ tool_name = output .split ('.' )[0 ]
64+
65+ # Install to bin dir
66+ helpers .run_setup_cmd (
67+ prefix ,
68+ (
69+ 'dotnet' , 'tool' , 'install' ,
70+ '--tool-path' , os .path .join (envdir , BIN_DIR ),
71+ '--add-source' , build_dir ,
72+ tool_name ,
73+ ),
6574 )
66- tool_name = build_outputs [0 ].split ('.' )[0 ]
67-
68- # Install to bin dir
69- helpers .run_setup_cmd (
70- prefix ,
71- (
72- 'dotnet' , 'tool' , 'install' ,
73- '--tool-path' , os .path .join (envdir , BIN_DIR ),
74- '--add-source' , build_dir ,
75- tool_name ,
76- ),
77- )
7875
7976 # Clean the git dir, ignoring the environment dir
8077 clean_cmd = ('git' , 'clean' , '-ffxd' , '-e' , f'{ ENVIRONMENT_DIR } -*' )
0 commit comments