8000 further cosmetic clean-up · winpython/winpython@de1c177 · GitHub
[go: up one dir, main page]

Skip to content

Commit de1c177

Browse files
committed
further cosmetic clean-up
1 parent 40d0c77 commit de1c177

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

make.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
"""
99
WinPython build script
10-
Created on Sun Aug 12 11:17:50 2012
1110
"""
1211

1312
import os
@@ -278,7 +277,6 @@ def python_full_version(self) -> str:
278277
return "0.0.0" # Placeholder before initialization
279278
return utils.get_python_long_version(self.distribution.target)
280279

281-
282280
@property
283281
def python_executable_dir(self) -> str:
284282
"""Returns the directory containing the Python executable."""
@@ -557,21 +555,11 @@ def build(self, remove_existing: bool = True, requirements=None, winpy_dirname:
557555
self._print_action("Writing package index")
558556
# winpyver2 = the version without build part but with self.distribution.architecture
559557
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")
568559
open(fname, "w", encoding='utf-8').write(self.package_index_markdown)
569-
# Copy to winpython/changelogs
570560

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))
575563

576564
# Writing changelog
577565
self._print_action("Writing changelog")
@@ -706,8 +694,6 @@ def make_all(
706694
if "7zip" in str(create_installer).lower():
707695
builder.create_installer_7zip(".exe")
708696

709-
return builder
710-
711697

712698
if __name__ == "__main__":
713699
# DO create only one version at a time

0 commit comments

Comments
 (0)
0