@@ -230,13 +230,6 @@ def build(self, rebuild: bool = True, requirements_files_list=None, winpy_dirnam
230230 shutil .copyfile (output_markdown_filename , str (Path (CHANGELOGS_DIRECTORY ) / Path (output_markdown_filename ).name ))
231231 diff .write_changelog (self .winpyver2 , None , CHANGELOGS_DIRECTORY , self .flavor , self .distribution .architecture , basedir = self .winpython_directory .parent )
232232
233- def rebuild_winpython_package (source_directory : Path , target_directory : Path , architecture : int = 64 , verbose : bool = False ):
234- """Rebuilds the winpython or wppm package from source using flit."""
235- for file in target_directory .glob ("w*p*-*.*" ):
236- if file .suffix in (".exe" , ".whl" , ".gz" ):
237- file .unlink ()
238- utils .buildflit_wininst (source_directory , copy_to = target_directory , verbose = True )
239-
240233def make_all (build_number : int , release_level : str , pyver : str , architecture : int , basedir : Path ,
241234 verbose : bool = False , rebuild : bool = True , create_installer : str = "True" , install_options = ["--no-index" ],
242235 flavor : str = "" , requirements : str | list [Path ] = None , find_links : str | list [Path ] = None ,
@@ -275,8 +268,6 @@ def make_all(build_number: int, release_level: str, pyver: str, architecture: in
275268 if rebuild :
276269 utils .print_box (f"Making WinPython { architecture } bits at { Path (basedir ) / ('bu' + flavor )} " )
277270 os .makedirs (build_directory , exist_ok = True )
278- # use source_dirs as the directory to re-build Winpython wheel
279- winpython_source_dir = Path (__file__ ).resolve ().parent
280271
281272 builder = WinPythonDistributionBuilder (
282273 build_number , release_level , build_directory , wheels_directory = source_dirs ,
0 commit comments