fix: pyodide missing some logging (#2477)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -34,7 +34,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Linters (mypy, flake8, etc.)
|
name: Linters (mypy, ruff, etc.)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from typing import IO, AnyStr, Final
|
from typing import IO, AnyStr, Final, Literal
|
||||||
|
|
||||||
from .ci import CIProvider, detect_ci_provider
|
from .ci import CIProvider, detect_ci_provider
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ class Symbols:
|
|||||||
|
|
||||||
|
|
||||||
class Logger:
|
class Logger:
|
||||||
fold_mode: str
|
fold_mode: Literal["azure", "github", "travis", "disabled"]
|
||||||
colors_enabled: bool
|
colors_enabled: bool
|
||||||
unicode_enabled: bool
|
unicode_enabled: bool
|
||||||
active_build_identifier: str | None = None
|
active_build_identifier: str | None = None
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import functools
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tomllib
|
import tomllib
|
||||||
import typing
|
import typing
|
||||||
@@ -445,6 +446,7 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
dest_dir=repaired_wheel_dir,
|
dest_dir=repaired_wheel_dir,
|
||||||
)
|
)
|
||||||
shell(repair_command_prepared, env=env)
|
shell(repair_command_prepared, env=env)
|
||||||
|
log.step_end()
|
||||||
else:
|
else:
|
||||||
shutil.move(str(built_wheel), repaired_wheel_dir)
|
shutil.move(str(built_wheel), repaired_wheel_dir)
|
||||||
|
|
||||||
@@ -546,6 +548,8 @@ def build(options: Options, tmp_path: Path) -> None:
|
|||||||
f"{repaired_wheel} was moved to {moved_wheel} instead of {output_wheel}"
|
f"{repaired_wheel} was moved to {moved_wheel} instead of {output_wheel}"
|
||||||
)
|
)
|
||||||
built_wheels.append(output_wheel)
|
built_wheels.append(output_wheel)
|
||||||
|
log.build_end()
|
||||||
|
|
||||||
finally:
|
except subprocess.CalledProcessError as error:
|
||||||
pass
|
msg = f"Command {error.cmd} failed with code {error.returncode}. {error.stdout or ''}"
|
||||||
|
raise errors.FatalError(msg) from error
|
||||||
|
|||||||
Reference in New Issue
Block a user