Skip to content

cleanup with .gitattributes protection now #1725

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
Aug 13, 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
8 changes: 2 additions & 6 deletions build_winpython_meta.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# build_winpython_meta.py
import os
import sys
# Use tomllib if available (Python 3.11+), otherwise fall back to tomli
Expand All @@ -10,7 +11,7 @@
print("Please install tomli for Python < 3.11: pip install tomli")
sys.exit(1)

#import yaml
#import yaml: we choose toml, more python standard
import subprocess
from pathlib import Path

Expand All @@ -20,8 +21,6 @@ def load_builds(config_file):
builds = config["builds"]
python_versions = config.get("pythons", {})
return builds, python_versions
#with open(config_file, "r", encoding="utf-8") as f:
# return yaml.safe_load(f)["builds"]

def run_build(build, python_versions):
print(f"\n=== Building WinPython: {build['name']} ===")
Expand All @@ -46,10 +45,7 @@ def run_build(build, python_versions):
my_release = vinfo.get("release", "")
my_release_level = vinfo.get("my_release_level", "b0")
mandatory_requirements = vinfo.get("mandatory_requirements", os.path.join(os.getcwd(), "mandatory_requirements.txt"))

# Get Python release info from TOML [pythons]
my_constraints = build.get("my_constraints", r"C:\WinP\constraints.txt")
target_python_exe = build.get("target_python_exe", "python.exe")

# Build directory logic
my_basedir = f"{root_dir_for_builds}\\bd{my_python_target}"
Expand Down