diff --git a/.builders/scripts/build_wheels.py b/.builders/scripts/build_wheels.py index d78c498761566..6e5a4bbc875ba 100644 --- a/.builders/scripts/build_wheels.py +++ b/.builders/scripts/build_wheels.py @@ -4,6 +4,7 @@ import email import json import os +import platform import re import shutil import subprocess @@ -30,6 +31,8 @@ UNNORMALIZED_PROJECT_NAME_CHARS = re.compile(r'[-_.]+') +# testing + class WheelSizes(TypedDict): compressed: int uncompressed: int @@ -153,6 +156,8 @@ def remove_test_files(wheel_path: Path) -> bool: with ZipFile(wheel_path, 'r') as zf: excluded_members = [name for name in zf.namelist() if is_excluded_from_wheel(name)] + print(f"Excluded members in {wheel_path.name}: {excluded_members}") + if not excluded_members: # Nothing to strip, so skip rewriting the wheel return False @@ -259,6 +264,15 @@ def main(): # Install build dependencies check_process([str(python_path), '-m', 'pip', 'install', '-r', str(MOUNT_DIR / 'build_dependencies.txt')]) + print("--------------------------------") + print("[DEBUGGING INFO]") + print("running on: ", sys.platform) + print("architecture: ", platform.machine()) + print("sys.version: ", sys.version) + print("python_path: ", python_path) + subprocess.run([python_path, "--version"]) + print("Platform:", sys.platform) + print("--------------------------------") with TemporaryDirectory() as d: staged_wheel_dir = Path(d).resolve() staged_built_wheels_dir = staged_wheel_dir / 'built' diff --git a/.github/workflows/resolve-build-deps.yaml b/.github/workflows/resolve-build-deps.yaml index 73cb6685fa6ef..d55d85bfb4731 100644 --- a/.github/workflows/resolve-build-deps.yaml +++ b/.github/workflows/resolve-build-deps.yaml @@ -11,7 +11,7 @@ on: branches: - master - 7.*.* - + concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' && true || false }}