Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate noarch: python inference issues #402

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Next Next commit
add reproducer
jaimergp committed Dec 11, 2023
commit dfeb1b6db4413c5ea1e946fd6bcfa325e36477d4
20 changes: 20 additions & 0 deletions tests/test_workarounds.py
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@
import pytest
from conda.common.compat import on_win

from .utils import conda_subprocess


def test_matchspec_star_version():
"""
@@ -109,3 +111,21 @@ def test_ctrl_c(stage):
p.wait(timeout=30)
assert p.returncode != 0
assert "KeyboardInterrupt" in p.stdout.read() + p.stderr.read()


def test_gpytorch_noarch(tmp_path):
"https://github.com/conda/conda/issues/13412"
conda_subprocess(
"create",
"-y",
"-p",
tmp_path,
"--override-channels",
"--solver=libmamba",
"--channel=pytorch",
"--channel=gpytorch",
"--channel=defaults",
"gpytorch",
check=True,
)
sp.run([tmp_path / "bin" / "python", "-c", "import gpytorch"], check=True)