I'm confused by the conda-forge
"feedstock" and when it's necessary to "rerender" it.
I find advice on what CDT packages to include in my project's recipe, if I'm linking against libGL (which I am), here. And the last thing it says is:
You will need to re-render the feedstock after making these changes.
That makes it sound like changing my own project's recipe requires me to "re-render the feedstock"; is that correct?
I've made several attempts at this, to no avail:
Traceback from `conda smithy rerender -c auto` command$ conda smithy rerender -c auto
INFO:conda_smithy.configure_feedstock:Downloading conda-forge-pinning-2023.03.18.10.09.36
INFO:conda_smithy.configure_feedstock:Extracting conda-forge-pinning to /tmp/tmp_kk_rkwr
Traceback (most recent call last):
File "/home/dbanas/miniconda3/bin/conda-smithy", line 10, in <module>
sys.exit(main())
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 669, in main
args.subcommand_func(args)
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 485, in __call__
self._call(args, tmpdir)
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 490, in _call
configure_feedstock.main(
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 2272, in main
config = _load_forge_config(forge_dir, exclusive_config_file, forge_yml)
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 1832, in _load_forge_config
raise RuntimeError(
RuntimeError: Could not find config file /home/dbanas/prj/PyBERT/conda-forge.yml. Either you are not rerendering inside the feedstock root (likely) or there's no `conda-forge.yml` in the feedstock root (unlikely). Add an empty `conda-forge.yml` file in feedstock root if it's the latter.
$ touch conda-forge.yml
$ conda smithy rerender -c auto
INFO:conda_smithy.configure_feedstock:Downloading conda-forge-pinning-2023.03.18.10.09.36
INFO:conda_smithy.configure_feedstock:Extracting conda-forge-pinning to /tmp/tmp3qlwn8vo
INFO:conda_smithy.configure_feedstock:__pycache__ rendering is skipped
INFO:conda_smithy.configure_feedstock:README rendering is skipped
Traceback (most recent call last):
File "/home/dbanas/miniconda3/bin/conda-smithy", line 10, in <module>
sys.exit(main())
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 669, in main
args.subcommand_func(args)
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 485, in __call__
self._call(args, tmpdir)
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/cli.py", line 490, in _call
configure_feedstock.main(
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 2318, in main
render_azure(env, config, forge_dir, return_metadata=True)
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 1412, in render_azure
return _render_ci_provider(
File "/home/dbanas/miniconda3/lib/python3.10/site-packages/conda_smithy/configure_feedstock.py", line 636, in _render_ci_provider
with open(
FileNotFoundError: [Errno 2] No such file or directory: '/home/dbanas/prj/PyBERT/recipe/meta.yaml'
$ conda smithy rerender -c auto conda.recipe/enable/
usage: conda smithy [-h] [--version]
{init,register-github,register-ci,azure-buildid,regenerate,rerender,recipe-lint,ci-skeleton,update-cb3,generate-feedstock-token,register-feedstock-token,update-anaconda-token,rotate-anaconda-token,update-binstar-token,rotate-binstar-token}
...
conda smithy: error: unrecognized arguments: conda.recipe/enable/
Can anyone shed some light here?