Skip to content

Commit

Permalink
fixup 99473a7
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Oct 29, 2023
1 parent 5a7b7a2 commit df674d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setupsrc/pypdfium2_setup/packaging_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@ def build_pdfium_bindings(version, headers_dir=None, flags=[], run_lds=["."], **
headers_dir = DataDir_Bindings / "headers"
if headers_dir.exists():
shutil.rmtree(headers_dir)
headers_dir.mkdir(parents=True, exist_ok=True)
archive_url = f"{PdfiumURL}/+archive/refs/heads/chromium/{version}/public.tar.gz"
archive_path = DataDir / "pdfium_public.tar.gz"
archive_path = DataDir_Bindings / "pdfium_public.tar.gz"
url_request.urlretrieve(archive_url, archive_path)
headers_dir.mkdir(parents=True, exist_ok=True)
with tarfile.open(archive_path) as tar:
for m in tar.getmembers():
if m.isfile() and re.fullmatch(r"fpdf(\w+)\.h", m.name, flags=re.ASCII):
Expand Down

0 comments on commit df674d8

Please sign in to comment.