Skip to content

Commit e37cb4a

Browse files
authored
Remove packaging from dependencies (#2866)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent daa6d43 commit e37cb4a

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

python/setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -758,13 +758,6 @@ def get_git_commit_hash(length=8):
758758
return ""
759759

760760

761-
def get_install_requires():
762-
install_requires = [
763-
"packaging", # used by third_party/intel/backend/driver.py
764-
] # yapf: disable
765-
return install_requires
766-
767-
768761
setup(
769762
name=os.environ.get("TRITON_WHEEL_NAME", "triton"),
770763
version="3.2.0" + get_git_commit_hash() + os.environ.get("TRITON_WHEEL_VERSION_SUFFIX", ""),
@@ -774,7 +767,6 @@ def get_install_requires():
774767
long_description="",
775768
packages=get_packages(),
776769
entry_points=get_entry_points(),
777-
install_requires=get_install_requires(),
778770
package_data=package_data,
779771
include_package_data=True,
780772
ext_modules=[CMakeExtension("triton", "triton/_C/")],

third_party/intel/backend/driver.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
from triton.runtime.cache import get_cache_manager
1313
from triton.backends.compiler import GPUTarget
1414
from triton.backends.driver import DriverBase
15-
from packaging.version import Version
16-
from packaging.specifiers import SpecifierSet
1715

1816

1917
def find_sycl(include_dir: list[str]) -> tuple[list[str], Optional[str]]:
@@ -51,7 +49,7 @@ def find_sycl(include_dir: list[str]) -> tuple[list[str], Optional[str]]:
5149
except importlib.metadata.PackageNotFoundError:
5250
raise AssertionError(assertion_message)
5351

54-
if Version(sycl_rt.get("version", "0.0.0")) in SpecifierSet("<2025.0.0a1"):
52+
if sycl_rt.get("version", "0.0.0").startswith("2024"):
5553
raise AssertionError(assertion_message)
5654

5755
sycl_dir = None

0 commit comments

Comments
 (0)