Skip to content

further cosmetic clean-up #1507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

"""
WinPython build script
Created on Sun Aug 12 11:17:50 2012
"""

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


@property
def python_executable_dir(self) -> str:
"""Returns the directory containing the Python executable."""
Expand Down Expand Up @@ -557,21 +555,11 @@ def build(self, remove_existing: bool = True, requirements=None, winpy_dirname:
self._print_action("Writing package index")
# winpyver2 = the version without build part but with self.distribution.architecture
self.winpyver2 = f"{self.python_full_version}.{self.build_number}"
fname = str(
self.winpy_dir.parent
/ (
f"WinPython{self.flavor}-"
+ f"{self.distribution.architecture}bit-"
+ f"{self.winpyver2}.md"
)
)
fname = str(self.winpy_dir.parent / f"WinPython{self.flavor}-{self.distribution.architecture}bit-{self.winpyver2}.md")
open(fname, "w", encoding='utf-8').write(self.package_index_markdown)
# Copy to winpython/changelogs

shutil.copyfile(
fname,
str(Path(CHANGELOGS_DIR) / Path(fname).name),
)
# Copy to winpython/changelogs
shutil.copyfile(fname, str(Path(CHANGELOGS_DIR) / Path(fname).name))

# Writing changelog
self._print_action("Writing changelog")
Expand Down Expand Up @@ -706,8 +694,6 @@ def make_all(
if "7zip" in str(create_installer).lower():
builder.create_installer_7zip(".exe")

return builder


if __name__ == "__main__":
# DO create only one version at a time
Expand Down