@@ -33,7 +33,7 @@ def format_command_result(
33
33
34
34
def get_legacy_build_wheel_path (
35
35
names : list [str ],
36
- temp_dir : str ,
36
+ wheel_directory : str ,
37
37
name : str ,
38
38
command_args : list [str ],
39
39
command_output : str ,
@@ -55,7 +55,7 @@ def get_legacy_build_wheel_path(
55
55
msg += format_command_result (command_args , command_output )
56
56
logger .warning (msg )
57
57
58
- return os .path .join (temp_dir , names [0 ])
58
+ return os .path .join (wheel_directory , names [0 ])
59
59
60
60
61
61
def build_wheel_legacy (
@@ -64,7 +64,7 @@ def build_wheel_legacy(
64
64
source_dir : str ,
65
65
global_options : list [str ],
66
66
build_options : list [str ],
67
- tempd : str ,
67
+ wheel_directory : str ,
68
68
) -> str | None :
69
69
"""Build one unpacked package using the "legacy" build process.
70
70
@@ -89,12 +89,12 @@ def build_wheel_legacy(
89
89
setup_py_path ,
90
90
global_options = global_options ,
91
91
build_options = build_options ,
92
- destination_dir = tempd ,
92
+ destination_dir = wheel_directory ,
93
93
)
94
94
95
95
spin_message = f"Building wheel for { name } (setup.py)"
96
96
with open_spinner (spin_message ) as spinner :
97
- logger .debug ("Destination directory: %s" , tempd )
97
+ logger .debug ("Destination directory: %s" , wheel_directory )
98
98
99
99
try :
100
100
output = call_subprocess (
@@ -108,10 +108,10 @@ def build_wheel_legacy(
108
108
logger .error ("Failed building wheel for %s" , name )
109
109
return None
110
110
111
- names = os .listdir (tempd )
111
+ names = os .listdir (wheel_directory )
112
112
wheel_path = get_legacy_build_wheel_path (
113
113
names = names ,
114
- temp_dir = tempd ,
114
+ wheel_directory = wheel_directory ,
115
115
name = name ,
116
116
command_args = wheel_args ,
117
117
command_output = output ,
0 commit comments