Skip to content
Draft
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions .builders/scripts/build_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import email
import json
import os
import platform
import re
import shutil
import subprocess
Expand All @@ -30,6 +31,8 @@
UNNORMALIZED_PROJECT_NAME_CHARS = re.compile(r'[-_.]+')


# testing

class WheelSizes(TypedDict):
compressed: int
uncompressed: int
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resolve-build-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Loading