diff --git a/pyproject.toml b/pyproject.toml index 5286724b5ca5..10f5dbeae685 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,6 @@ requires = [ "setuptools-scm>=8.0", "torch == 2.7.0", "wheel", - "regex", "jinja2", ] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index b822a4ec36a4..c190864dda94 100644 --- a/setup.py +++ b/setup.py @@ -5,12 +5,12 @@ import json import logging import os +import re import subprocess import sys from pathlib import Path from shutil import which -import regex as re import torch from packaging.version import Version, parse from setuptools import Extension, setup diff --git a/tools/enforce_regex_import.py b/tools/enforce_regex_import.py index b55c4a94eac8..6c201dd2543e 100644 --- a/tools/enforce_regex_import.py +++ b/tools/enforce_regex_import.py @@ -58,6 +58,9 @@ def main() -> int: if not Path(filepath).exists(): continue + if filepath == "setup.py": + continue + violations = check_file(filepath) if violations: print(f"\n❌ {filepath}:")