|
7 | 7 |
|
8 | 8 | """
|
9 | 9 | WinPython build script
|
10 |
| -Created on Sun Aug 12 11:17:50 2012 |
11 | 10 | """
|
12 | 11 |
|
13 | 12 | import os
|
@@ -278,7 +277,6 @@ def python_full_version(self) -> str:
|
278 | 277 | return "0.0.0" # Placeholder before initialization
|
279 | 278 | return utils.get_python_long_version(self.distribution.target)
|
280 | 279 |
|
281 |
| - |
282 | 280 | @property
|
283 | 281 | def python_executable_dir(self) -> str:
|
284 | 282 | """Returns the directory containing the Python executable."""
|
@@ -557,21 +555,11 @@ def build(self, remove_existing: bool = True, requirements=None, winpy_dirname:
|
557 | 555 | self._print_action("Writing package index")
|
558 | 556 | # winpyver2 = the version without build part but with self.distribution.architecture
|
559 | 557 | self.winpyver2 = f"{self.python_full_version}.{self.build_number}"
|
560 |
| - fname = str( |
561 |
| - self.winpy_dir.parent |
562 |
| - / ( |
563 |
| - f"WinPython{self.flavor}-" |
564 |
| - + f"{self.distribution.architecture}bit-" |
565 |
| - + f"{self.winpyver2}.md" |
566 |
| - ) |
567 |
| - ) |
| 558 | + fname = str(self.winpy_dir.parent / f"WinPython{self.flavor}-{self.distribution.architecture}bit-{self.winpyver2}.md") |
568 | 559 | open(fname, "w", encoding='utf-8').write(self.package_index_markdown)
|
569 |
| - # Copy to winpython/changelogs |
570 | 560 |
|
571 |
| - shutil.copyfile( |
572 |
| - fname, |
573 |
| - str(Path(CHANGELOGS_DIR) / Path(fname).name), |
574 |
| - ) |
| 561 | + # Copy to winpython/changelogs |
| 562 | + shutil.copyfile(fname, str(Path(CHANGELOGS_DIR) / Path(fname).name)) |
575 | 563 |
|
576 | 564 | # Writing changelog
|
577 | 565 | self._print_action("Writing changelog")
|
@@ -706,8 +694,6 @@ def make_all(
|
706 | 694 | if "7zip" in str(create_installer).lower():
|
707 | 695 | builder.create_installer_7zip(".exe")
|
708 | 696 |
|
709 |
| - return builder |
710 |
| - |
711 | 697 |
|
712 | 698 | if __name__ == "__main__":
|
713 | 699 | # DO create only one version at a time
|
|
0 commit comments