Skip to content

Commit

Permalink
try to fix windows sourcebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Oct 29, 2023
1 parent 99473a7 commit 5a7b7a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setupsrc/pypdfium2_setup/build_pdfium.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ def _create_resources_rc(v_libpdfium):
content = input_path.read_text()

# NOTE RC does not seem to tolerate commit hash, so set a dummy version instead
if not v_libpdfium.isnumeric():
if not isinstance(v_libpdfium, int):
v_libpdfium = "1.0"

content = content.replace("$VERSION_CSV", v_libpdfium.replace(".", ","))
content = content.replace("$VERSION", v_libpdfium)
content = content.replace("$VERSION_CSV", str(v_libpdfium).replace(".", ","))
content = content.replace("$VERSION", str(v_libpdfium))
output_path.write_text(content)


Expand Down

0 comments on commit 5a7b7a2

Please sign in to comment.