From 6fcf353ade0a3dbb5bc1176f177d899b8fb9ca86 Mon Sep 17 00:00:00 2001 From: geisserml Date: Sun, 19 May 2024 16:09:04 +0200 Subject: [PATCH] Try to fix conda not finding external deps --- README.md | 2 +- setupsrc/pypdfium2_setup/craft_packages.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 628da8ad4..45ce02267 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ pypdfium2 includes helpers to simplify common use cases, while the raw PDFium/ct Alternatively, with temporary channel config: ```bash - conda install pypdfium2-team::pypdfium2_helpers --override-channels -c pypdfium2-team -c bblanchon + conda install pypdfium2-team::pypdfium2_helpers --override-channels -c pypdfium2-team -c bblanchon -c defaults ``` Adding the channels permanently and tightening priority is encouraged to include pypdfium2 in `conda update` by default, and to avoid accidentally replacing the install with a different channel. (If desired, you may limit the channel config to the current environment by adding `--env`.) diff --git a/setupsrc/pypdfium2_setup/craft_packages.py b/setupsrc/pypdfium2_setup/craft_packages.py index 8580cdf00..de42bc421 100644 --- a/setupsrc/pypdfium2_setup/craft_packages.py +++ b/setupsrc/pypdfium2_setup/craft_packages.py @@ -138,7 +138,7 @@ def main_conda_raw(args): os.environ["BUILD_NUM"] = str(_get_build_num(args)) emplace_func = partial(prepare_setup, ExtPlats.system, args.pdfium_ver, use_v8=None) with CondaExtPlatfiles(emplace_func): - run_conda_build(CondaDir/"raw", CondaDir/"raw"/"out", args=["--override-channels", "-c", "bblanchon"]) + run_conda_build(CondaDir/"raw", CondaDir/"raw"/"out", args=["--override-channels", "-c", "bblanchon", "-c", "defaults"]) def main_conda_helpers(args): @@ -149,7 +149,7 @@ def main_conda_helpers(args): # NOTE To build with a local pypdfium2_raw, add the args below for the source dir, and remove the pypdfium2-team prefix from the helpers recipe's run requirements # args=["-c", CondaDir/"raw"/"out"] - run_conda_build(CondaDir/"helpers", CondaDir/"helpers"/"out", args=["--override-channels", "-c", "pypdfium2-team", "-c", "bblanchon"]) + run_conda_build(CondaDir/"helpers", CondaDir/"helpers"/"out", args=["--override-channels", "-c", "pypdfium2-team", "-c", "bblanchon", "-c", "defaults"]) class ArtifactStash: