@@ -33,7 +33,7 @@ def format_command_result(
3333
3434def get_legacy_build_wheel_path (
3535 names : list [str ],
36- temp_dir : str ,
36+ wheel_directory : str ,
3737 name : str ,
3838 command_args : list [str ],
3939 command_output : str ,
@@ -55,7 +55,7 @@ def get_legacy_build_wheel_path(
5555 msg += format_command_result (command_args , command_output )
5656 logger .warning (msg )
5757
58- return os .path .join (temp_dir , names [0 ])
58+ return os .path .join (wheel_directory , names [0 ])
5959
6060
6161def build_wheel_legacy (
@@ -64,7 +64,7 @@ def build_wheel_legacy(
6464 source_dir : str ,
6565 global_options : list [str ],
6666 build_options : list [str ],
67- tempd : str ,
67+ wheel_directory : str ,
6868) -> str | None :
6969 """Build one unpacked package using the "legacy" build process.
7070
@@ -89,12 +89,12 @@ def build_wheel_legacy(
8989 setup_py_path ,
9090 global_options = global_options ,
9191 build_options = build_options ,
92- destination_dir = tempd ,
92+ destination_dir = wheel_directory ,
9393 )
9494
9595 spin_message = f"Building wheel for { name } (setup.py)"
9696 with open_spinner (spin_message ) as spinner :
97- logger .debug ("Destination directory: %s" , tempd )
97+ logger .debug ("Destination directory: %s" , wheel_directory )
9898
9999 try :
100100 output = call_subprocess (
@@ -108,10 +108,10 @@ def build_wheel_legacy(
108108 logger .error ("Failed building wheel for %s" , name )
109109 return None
110110
111- names = os .listdir (tempd )
111+ names = os .listdir (wheel_directory )
112112 wheel_path = get_legacy_build_wheel_path (
113113 names = names ,
114- temp_dir = tempd ,
114+ wheel_directory = wheel_directory ,
115115 name = name ,
116116 command_args = wheel_args ,
117117 command_output = output ,
0 commit comments