Skip to content

Commit

Permalink
pin in the napari env too
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Sep 30, 2024
1 parent 092428f commit 564d043
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/make_bundle_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ jobs:
conda info
conda config --show-sources
conda config --show
conda list -p "${{ runner.temp }}/napari-${{ env.version }}/envs/napari-${{ env.version }}"
conda list -p "${{ runner.temp }}/napari-${{ env.version }}"
conda list -p "${{ runner.temp }}/napari-${{ env.version }}/envs/napari-${{ env.version }}"
xvfb-run --auto-servernum napari --info
# Test shortcut
python -c "import pathlib as p; assert list(p.Path('~/.local/share/applications/').expanduser().glob('napari*.desktop'))"
Expand Down
18 changes: 10 additions & 8 deletions build_installers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@
else:
raise RuntimeError(f"Unrecognized OS: {sys.platform}")

CONDA_TOOL_DEPS = (
"conda >=23.10",
"conda-libmamba-solver",
"mamba <2.0a0",
"pip",
)


def _use_local():
"""
Expand Down Expand Up @@ -215,10 +222,7 @@ def _base_env(python_version=PY_VER):
],
"specs": [
f"python={python_version}.*=*_cpython",
"conda >=23.10",
"conda-libmamba-solver",
"mamba <2.0a0",
"pip",
*CONDA_TOOL_DEPS,
],
}

Expand All @@ -238,11 +242,9 @@ def _napari_env(
f"napari-menu={napari_version}",
"napari-plugin-manager",
f"pyside2={pyside_version}",
"conda",
"mamba",
"pip",
*CONDA_TOOL_DEPS,
*(extra_specs or ()),
]
+ (extra_specs or []),
# "exclude": exclude, # TODO: not supported yet in constructor
}

Expand Down

0 comments on commit 564d043

Please sign in to comment.