Skip to content

Commit

Permalink
sourcebuild: add fixme regarding version
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Nov 10, 2023
1 parent 923e258 commit 4f2d3cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setupsrc/pypdfium2_setup/build_pdfium.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ def _dl_unbundler():

def identify_pdfium():
# if not updated, we'll always be dirty because of the patches, so not much point checking it
# FIXME `git describe --all` stopped working correctly??
desc = run_cmd(["git", "describe", "--all"], cwd=PDFiumDir, capture=True)
desc = desc.rsplit("/", maxsplit=1)[-1]
v_short, *id_parts = desc.split("-")
v_short = int(v_short)
assert len(id_parts) < 2

# FIXME some duplication with base::parse_given_tag()
Expand Down

0 comments on commit 4f2d3cc

Please sign in to comment.