|
15 | 15 | fromwppmimportwppm,utils,diff |
16 | 16 |
|
17 | 17 | # Define constant paths for clarity |
18 | | -CHANGELOGS_DIRECTORY=Path(__file__).parent/"changelogs" |
19 | 18 | PORTABLE_DIRECTORY=Path(__file__).parent/"portable" |
20 | 19 | NODEJS_RELATIVE_PATH="n"# Relative path within WinPython dir |
21 | 20 |
|
22 | 21 | # Ensure necessary directories exist at the start |
23 | | -assertCHANGELOGS_DIRECTORY.is_dir(),f"Changelogs directory not found:{CHANGELOGS_DIRECTORY}" |
24 | 22 | assertPORTABLE_DIRECTORY.is_dir(),f"Portable directory not found:{PORTABLE_DIRECTORY}" |
25 | 23 |
|
26 | 24 | defcopy_items(source_directories:list[Path],target_directory:Path,verbose:bool=False): |
@@ -184,16 +182,6 @@ def build(self, rebuild: bool = True, winpy_dir: Path = None): |
184 | 182 | self.distribution.do_pip_action(actions) |
185 | 183 | self.distribution.patch_standard_packages(package_name) |
186 | 184 |
|
187 | | -self._print_action("Writing package index") |
188 | | -self.winpyver2=f"{self.python_full_version}.{self.build_number}" |
189 | | -output_markdown_filename=str(self.winpython_directory.parent/f"WinPython{self.flavor}-{self.distribution.architecture}bit-{self.winpyver2}.md") |
190 | | -withopen(output_markdown_filename,"w",encoding='utf-8')asf: |
191 | | -f.write(self.package_index_markdown) |
192 | | - |
193 | | -self._print_action("Writing changelog") |
194 | | -shutil.copyfile(output_markdown_filename,str(Path(CHANGELOGS_DIRECTORY)/Path(output_markdown_filename).name)) |
195 | | -diff.write_changelog(self.winpyver2,None,CHANGELOGS_DIRECTORY,self.flavor,self.distribution.architecture,basedir=self.winpython_directory.parent) |
196 | | - |
197 | 185 | defmake_all(build_number:int,release_level:str,basedir_wpy:Path=None, |
198 | 186 | verbose:bool=False,rebuild:bool=True,create_installer:str="True",install_options=["--no-index"], |
199 | 187 | flavor:str="",find_links:str|list[Path]=None, |
@@ -233,7 +221,6 @@ def make_all(build_number: int, release_level: str, basedir_wpy: Path = None, |
233 | 221 | install_options=install_options_list+find_links_options, |
234 | 222 | flavor=flavor |
235 | 223 | ) |
236 | | - |
237 | 224 | builder.build(rebuild=rebuild,winpy_dir=winpy_dir) |
238 | 225 |
|
239 | 226 |
|
|