Only print testing warnings if test command is set
This commit is contained in:
@@ -332,6 +332,7 @@ def build(options: BuildOptions) -> None:
|
||||
|
||||
log.step_end()
|
||||
|
||||
if options.test_command:
|
||||
machine_arch = platform.machine()
|
||||
testing_archs: List[str] = []
|
||||
|
||||
@@ -363,7 +364,6 @@ def build(options: BuildOptions) -> None:
|
||||
else:
|
||||
testing_archs = ['arm64']
|
||||
|
||||
if options.test_command and len(testing_archs) > 0:
|
||||
for testing_arch in testing_archs:
|
||||
log.step('Testing wheel...' if testing_arch == machine_arch else f'Testing wheel on {testing_arch}...')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user