mirror of
https://github.com/NVIDIA/skills.git
synced 2026-09-14 15:41:50 +08:00
2027d0a6a9
Correct the file headers and LICENSE preamble to match the OSS CC-BY-4.0/Apache-2.0 dual-license template (nvidia.atlassian.net OSS page 3151960247): - File headers now use 'SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0' (was Apache-2.0) with SPDX-FileCopyrightText form, across the 7 catalog-owned files. - LICENSE opens with the prescribed two-line dual-license preamble. Signed-off-by: mosheabr <257371078+mosheabr@users.noreply.github.com>
23 lines
803 B
Bash
Executable File
23 lines
803 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0
|
|
# Wrapper around build-plugins.py that ensures PyYAML is importable.
|
|
# Forwards all arguments to the Python script.
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
if ! python3 -c "import yaml" 2>/dev/null; then
|
|
echo "PyYAML not found; installing for the current user..." >&2
|
|
if pip3 install --user pyyaml >/dev/null 2>&1; then
|
|
:
|
|
elif pip3 install --user --break-system-packages pyyaml >/dev/null 2>&1; then
|
|
:
|
|
else
|
|
echo "error: failed to install PyYAML; install it manually (pip install pyyaml) and re-run." >&2
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
exec python3 "$SCRIPT_DIR/build-plugins.py" "$@"
|