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
13 changes: 12 additions & 1 deletion .builders/scripts/build_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import argparse
import json
import os
import platform
import subprocess
import sys
from pathlib import Path
Expand All @@ -17,10 +18,12 @@
CUSTOM_EXTERNAL_INDEX = f'{INDEX_BASE_URL}/external'
CUSTOM_BUILT_INDEX = f'{INDEX_BASE_URL}/built'


class WheelSizes(TypedDict):
compressed: int
uncompressed: int


if sys.platform == 'win32':
PY3_PATH = Path('C:\\py3\\Scripts\\python.exe')
PY2_PATH = Path('C:\\py2\\Scripts\\python.exe')
Expand Down Expand Up @@ -90,6 +93,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()
env_vars = dict(os.environ)
Expand Down Expand Up @@ -167,7 +179,6 @@ def main():
project_version = project_metadata['Version']
dependencies[project_name] = project_version


sizes[project_name] = {'version': project_version, **calculate_wheel_sizes(wheel)}

output_path = MOUNT_DIR / 'sizes.json'
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 @@ -10,7 +10,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