Dependencies from conda-forge are being removed during sphinx installation due to conda channel priority
See original GitHub issueDetails
- Read the Docs project URL: https://freud.readthedocs.io/en/stable/
- Build URL (if applicable): https://readthedocs.org/projects/freud/builds/12216572/
- Read the Docs username (if applicable): bdice
Expected Result
I have a conda environment yml file:
name: freud-rtd
channels:
- defaults
- conda-forge
dependencies:
- python
- pip
- scikit-build
- cmake
- cython
- tbb
- tbb-devel
- numpy
- sphinx
- sphinx_rtd_theme
- nbsphinx
- jupyter_sphinx
- sphinxcontrib-bibtex
Some of the packages are installed from conda-forge, and then removed during the step:
conda install --yes --quiet --name 668 mock pillow sphinx sphinx_rtd_theme
I expected that this step wouldn’t remove my package dependencies.
Actual Result
Dependencies were removed, resulting in a failed build. This appears to be due to channel priority, where main
is preferred over conda-forge
in the second step even though my conda environment prefers conda-forge
over main
.
The following packages will be REMOVED:
jupyter_sphinx-0.3.1-py39hde42818_1
pybtex-0.23.0-py39hde42818_0
pybtex-docutils-0.2.2-py39hde42818_2
python_abi-3.9-1_cp39
scikit-build-0.11.1-py39hf149a3a_2
sphinxcontrib-bibtex-1.0.0-py_0
This appears to have changed in the last 2 weeks or so (or at least that’s when my builds started failing).
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Tips & tricks — conda-forge 2022.12.16 documentation
In addition to the channel priority, we recommend always installing your packages inside a new environment instead of the base environment from anaconda/ ......
Read more >Why does adding `--no-update-dependencies` add more ...
When I do conda install spacy --no-update-dependencies , conda wants to make ... will be SUPERSEDED by a higher-priority channel: conda-env: ...
Read more >Conda configuration
If conda-build channels # # are to be allowed, along with the --use-local command line flag, be # # sure to include the...
Read more >Error when updating conda packages: RemoveError
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment. The only thing that actually worked ...
Read more >conda/conda - Gitter
Numpydoc has only python and sphinx as dependencies ... Or the packages that will be installed by the command I was running? Dave...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Feature flags are experimental options that in time would be default or become an option, if this one becomes an option the config file would be great place, yes.
Would the
CONDA_APPEND_CORE_REQUIREMENTS
feature flag help with this? https://docs.readthedocs.io/en/stable/guides/feature-flags.html#available-flags