Skip to content

Commit d0c34e5

Browse files
committed
cleanup with .gitattributes protection now
1 parent 287b933 commit d0c34e5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

build_winpython_meta.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# build_winpython_meta.py
12
import os
23
import sys
34
# Use tomllib if available (Python 3.11+), otherwise fall back to tomli
@@ -10,7 +11,7 @@
1011
print("Please install tomli for Python < 3.11: pip install tomli")
1112
sys.exit(1)
1213

13-
#import yaml
14+
#import yaml: we choose toml, more python standard
1415
import subprocess
1516
from pathlib import Path
1617

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

2625
def run_build(build, python_versions):
2726
print(f"\n=== Building WinPython: {build['name']} ===")
@@ -46,10 +45,7 @@ def run_build(build, python_versions):
4645
my_release = vinfo.get("release", "")
4746
my_release_level = vinfo.get("my_release_level", "b0")
4847
mandatory_requirements = vinfo.get("mandatory_requirements", os.path.join(os.getcwd(), "mandatory_requirements.txt"))
49-
50-
# Get Python release info from TOML [pythons]
5148
my_constraints = build.get("my_constraints", r"C:\WinP\constraints.txt")
52-
target_python_exe = build.get("target_python_exe", "python.exe")
5349

5450
# Build directory logic
5551
my_basedir = f"{root_dir_for_builds}\\bd{my_python_target}"

0 commit comments

Comments
 (0)