Skip to content

Commit e675298

Browse files
authored
Install filecheck>=1.0.0 for python_version >= 3.10 (#4444)
Fixes #4443. Signed-off-by: Pavel Chekin <[email protected]>
1 parent 0d787e3 commit e675298

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

scripts/requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Keep in sync with extra_require.tests from setup.py
2-
filecheck>=1.0.0
2+
filecheck>=1.0.0; python_version >= '3.10'
33
lit
44
numpy
55
pytest

scripts/test-triton.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,12 @@ run_minicore_tests() {
275275
cd $TRITON_PROJ/python/test/unit
276276
ensure_spirv_dis
277277

278+
# Ignore language/test_frontend.py when Python < 3.10.
279+
# The test requires Python package filecheck which is not available for Python < 3.10.
280+
# https://github.com/intel/intel-xpu-backend-for-triton/issues/4443
278281
TRITON_DISABLE_LINE_INFO=1 TRITON_TEST_SUITE=language \
279282
run_pytest_command -vvv -n ${PYTEST_MAX_PROCESSES:-8} --device xpu language/ --ignore=language/test_line_info.py --ignore=language/test_subprocess.py --ignore=language/test_warp_specialization.py \
283+
$(python -c 'import sys; print("--ignore=language/test_frontend.py" if sys.version_info < (3, 10) else "")') \
280284
-k "not test_mxfp and not test_scaled_dot"
281285

282286
TRITON_DISABLE_LINE_INFO=1 TRITON_TEST_SUITE=subprocess \

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ def get_git_version_suffix():
804804
description="A language and compiler for custom Deep Learning operations",
805805
long_description="",
806806
install_requires=[
807-
"filecheck>=1.0.0",
807+
"filecheck>=1.0.0; python_version >= '3.10'",
808808
"setuptools>=78.1.0",
809809
"importlib-metadata; python_version < '3.10'",
810810
],

0 commit comments

Comments
 (0)