Skip to content

Commit 56ca496

Browse files
committed
Legal File Changes
1 parent 65ea275 commit 56ca496

File tree

2 files changed

+3899
-1
lines changed

2 files changed

+3899
-1
lines changed

scripts/release/macos/build_binary_tar_gz.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
├── LICENSE
2525
├── NOTICE.txt
2626
├── README.md
27+
├── ThirdPartyNotices.txt
2728
├── bin/
2829
│ └── az → ../libexec/bin/az
2930
├── completions/
@@ -277,7 +278,7 @@ def _create_launcher_script(bin_dir: Path, python_version: str) -> None:
277278

278279

279280
def _copy_legal_files(install_dir: Path) -> None:
280-
"""Copy legal and documentation files from the project root into the install directory."""
281+
"""Copy legal and documentation files into the install directory."""
281282
print("\n=== Copying legal files ===")
282283

283284
for filename in ("LICENSE", "NOTICE.txt", "README.md"):
@@ -289,6 +290,14 @@ def _copy_legal_files(install_dir: Path) -> None:
289290
else:
290291
print(f"Warning: {filename} not found at {src}")
291292

293+
tpn_src = Path(__file__).resolve().parent / "resources" / "ThirdPartyNotices.txt"
294+
if tpn_src.exists():
295+
tpn_dst = install_dir / "ThirdPartyNotices.txt"
296+
shutil.copy2(tpn_src, tpn_dst)
297+
print(f"Copied ThirdPartyNotices.txt: {tpn_dst}")
298+
else:
299+
print(f"Warning: ThirdPartyNotices.txt not found at {tpn_src}")
300+
292301

293302
def _generate_shell_completions(venv_dir: Path, install_dir: Path) -> None:
294303
"""Generate shell completion files using argcomplete from the build venv."""

0 commit comments

Comments
 (0)