Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ jobs:
conda create -n ${{ env.EXAMPLES_ENV_NAME }} -y pytest python="${PYTHON_VER}" "setuptools<72.2.0" $CHANNELS
echo "Environment created"
# shellcheck disable=SC2086
conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y cmake ninja $CHANNELS || exit 1
conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y "cmake>=3.22" ninja $CHANNELS || exit 1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both test_examples_linux jobs fail at this line:

PackagesNotFoundInChannelsError: The following packages are not available from current channels:
  - python3.14.*.*      (python3.15.*.* on the 3.15 job)

CI does not run conda 26.10.0 here. The "Install conda-index" step (conda install conda-index=... -c conda-forge) supersedes base conda with conda-forge's conda-26.7.3 while conda-rattler-solver 26.11.0 from pkgs/main stays, and it swaps certifi (the log shows Failed to export: Could not find a suitable TLS CA certificate bundle). With conda 26.10.0 and rattler locally, this exact install solves to cmake 4.x and bare cmake gives cmake-3.5.0-3, so the local check holds, just not for the conda CI ends up with.

Options: install cmake ninja pybind11 cython scikit-build in the same conda create as python/pytest/setuptools, as conda-package-cf.yml does (its examples jobs pass in this run), or keep the conda-index step from downgrading conda, e.g. by adding "conda>=26.10" to that install.

echo "Cmake and Ninja installed"
# shellcheck disable=SC2086
conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y pybind11 cython scikit-build $CHANNELS || exit 1
Expand Down
3 changes: 3 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ requirements:
- {{ dep }}
{% elif dep.startswith('build>=') %}
- {{ 'python-' ~ dep }}
{% elif '[' in dep %}
# strip pip extras, conda does not accept them
- {{ dep.split('[')[0] ~ dep.split(']')[1] }}
Comment on lines +46 to +48

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this branch skips the replace('_','-') of the else branch and keeps any ; marker, so a later foo_bar[x] or foo[x]; marker dep would render differently than without extras. It is fine for versioneer[toml]==0.29 today. Stripping the extras first, e.g. {% set dep = dep.split('[')[0] ~ dep.split(']')[1] if '[' in dep else dep %} at the top of the loop, would let the dep fall through to the existing branches, and the comment would not sit inside the loop.

{% else %}
- {{ dep|replace('_','-') }}
{% endif %}
Expand Down
Loading