@@ -332,29 +332,6 @@ def documentation_directories_list(self) -> list[Path]:
332
332
return [default_docs_directory ] + self .documentation_directories
333
333
return self .documentation_directories
334
334
335
- def create_batch_script (self , name : str , contents : str , replacements : list [tuple [str , str ]] = None ):
336
- """
337
- Creates a batch script in the WinPython scripts directory.
338
-
339
- Args:
340
- name: The name of the batch script file.
341
- contents: The contents of the batch script.
342
- replacements: A list of tuples for text replacements in the content.
343
- """
344
- script_directory = self .winpython_directory / "scripts" if self .winpython_directory else None
345
- if not script_directory :
346
- print ("Warning: WinPython directory not set, cannot create batch script." )
347
- return
348
- script_directory .mkdir (parents = True , exist_ok = True )
349
- final_contents = contents
350
- if replacements :
351
- for old_text , new_text in replacements :
352
- final_contents = final_contents .replace (old_text , new_text )
353
- script_path = script_directory / name
354
- with open (script_path , "w" ) as f :
355
- f .write (final_contents )
356
- print (f"Created batch script: { script_path } " )
357
-
358
335
def create_installer_7zip (self , installer_type : str = ".exe" ):
359
336
"""
360
337
Creates a WinPython installer using 7-Zip.
@@ -510,7 +487,7 @@ def build(self, rebuild: bool = True, requirements_files_list=None, winpy_dirnam
510
487
# Writing changelog
511
488
self ._print_action ("Writing changelog" )
512
489
shutil .copyfile (output_markdown_filename , str (Path (CHANGELOGS_DIRECTORY ) / Path (output_markdown_filename ).name ))
513
- diff .write_changelog (self .winpyver2 , None , self .base_directory , self .flavor , self .release_level , self . distribution .architecture )
490
+ diff .write_changelog (self .winpyver2 , None , self .base_directory , self .flavor , self .distribution .architecture )
514
491
515
492
516
493
def rebuild_winpython_package (source_directory : Path , target_directory : Path , architecture : int = 64 , verbose : bool = False ):
0 commit comments