@@ -1006,9 +1006,17 @@ def prepend_root(path):
1006
1006
f .write ('\n ' .join (new_lines ) + '\n ' )
1007
1007
1008
1008
def install_use_pep517 (
1009
- self , warn_script_location , use_user_site , pycompile , prefix , root , home
1009
+ self ,
1010
+ warn_script_location , # type: bool
1011
+ use_user_site , # type: bool
1012
+ pycompile , # type: bool
1013
+ prefix , # type: Optional[str]
1014
+ root , # type: Optional[str]
1015
+ home # type: Optional[str]
1010
1016
):
1011
- with TempDirectory (kind = 'wheel' ) as wheel_dir , TempDirectory (kind = 'wheel' ) as build_dir :
1017
+ # type: (...) -> None
1018
+ with TempDirectory (kind = 'wheel' ) as wheel_dir , \
1019
+ TempDirectory (kind = 'wheel' ) as build_dir :
1012
1020
wheel_name = self .build_wheel_use_pep517 (build_dir .path )
1013
1021
unpack_file (
1014
1022
os .path .join (build_dir .path , wheel_name ),
@@ -1023,9 +1031,9 @@ def install_use_pep517(
1023
1031
warn_script_location = warn_script_location ,
1024
1032
use_user_site = use_user_site , pycompile = pycompile ,
1025
1033
)
1026
- return
1027
1034
1028
1035
def build_wheel_use_pep517 (self , output_directory ):
1036
+ # type: (str) -> str
1029
1037
self .spin_message = 'Building wheel for %s (PEP 517)' % (self .name ,)
1030
1038
with self .build_env , indent_log ():
1031
1039
return self .pep517_backend .build_wheel (
0 commit comments