Skip to content

Commit

Permalink
do not test micromamba x windows yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Dec 18, 2023
1 parent eb2de34 commit 6cede2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ jobs:
conda-standalone: conda-standalone
- os: windows
python-version: "3.11"
conda-standalone: micromamba
# conda-standalone: micromamba
conda-standalone: conda-standalone-nightly

env:
PYTHONUNBUFFERED: "1"
Expand Down
3 changes: 3 additions & 0 deletions constructor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def main_build(dir_path, output_dir='.', platform=cc_platform,

if platform != cc_platform and 'pkg' in itypes and not cc_platform.startswith('osx-'):
sys.exit("Error: cannot construct a macOS 'pkg' installer on '%s'" % cc_platform)
if osname == "win" and "micromamba" in os.path.basename(info['_conda_exe']):
# TODO: Investigate errors on Windows and re-enable
sys.exit("Error: micromamba is not supported on Windows installers.")

logger.debug('conda packages download: %s', info['_download_dir'])

Expand Down
3 changes: 3 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ def create_installer(
timeout=420,
**env_vars,
) -> Tuple[Path, Path]:
if sys.platform.startswith("win") and conda_exe and _is_micromamba(conda_exe):
pytest.skip("Micromamba is not supported on Windows yet.")

output_dir = workspace / "installer"
output_dir.mkdir(parents=True, exist_ok=True)
cmd = [
Expand Down

0 comments on commit 6cede2b

Please sign in to comment.