Skip to content

Commit

Permalink
Add missing mkdir with refbindings (fixes #320)
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Jul 12, 2024
1 parent ff2ff4b commit ce1faba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setupsrc/pypdfium2_setup/packaging_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ def build_pdfium_bindings(version, headers_dir=None, **kwargs):
flags_diff = set(kwargs["flags"]).difference(REFBINDINGS_FLAGS)
if flags_diff: # == not set(...).issubset(...)
print(f"Warning: The following requested flags are not available in the reference bindings and will be discarded: {flags_diff}")
DataDir_Bindings.mkdir(parents=True, exist_ok=True)
shutil.copyfile(RefBindingsFile, DataDir_Bindings/BindingsFN)
write_json(ver_path, dict(version=bindings_ver, flags=REFBINDINGS_FLAGS, run_lds=["."], source="reference"))
return
Expand Down

0 comments on commit ce1faba

Please sign in to comment.