Skip to content

Commit

Permalink
use shutil to copy license files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Mar 8, 2024
1 parent fccb450 commit 5c91f4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import os
import re
import shutil
import subprocess
import sys
import tempfile
Expand Down Expand Up @@ -377,7 +378,7 @@ def build_guide(session: nox.Session):
for license in ("LICENSE-APACHE", "LICENSE-MIT"):
target_file = PYO3_DIR / "guide" / "src" / license
target_file.unlink(missing_ok=True)
target_file.hardlink_to(PYO3_DIR / license)
shutil.copy(PYO3_DIR / license, target_file)
_run(session, "mdbook", "build", "-d", "../target/guide", "guide", *session.posargs)


Expand Down

0 comments on commit 5c91f4c

Please sign in to comment.