From 905b3a15a5a830067e882caefa292ccecb9c911f Mon Sep 17 00:00:00 2001 From: Sayan Saha Date: Tue, 12 Aug 2025 09:33:03 -0400 Subject: [PATCH] [CI] : Use llvm's python requirements.txt for common py packages. --- build-requirements.txt | 4 +--- build_tools/ci/install_python_deps.sh | 4 ---- build_tools/python_deploy/build_linux_packages.sh | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/build-requirements.txt b/build-requirements.txt index f45b51399ac2..4279cb5a8075 100644 --- a/build-requirements.txt +++ b/build-requirements.txt @@ -1,11 +1,9 @@ -numpy -pybind11 +-r ./externals/llvm-project/mlir/python/requirements.txt wheel setuptools cmake ninja packaging -nanobind>=2.4, <3.0 # Workaround for what should be a torch dep # See discussion in #1174 diff --git a/build_tools/ci/install_python_deps.sh b/build_tools/ci/install_python_deps.sh index 6dca4ffe756c..8dfc99b1a472 100755 --- a/build_tools/ci/install_python_deps.sh +++ b/build_tools/ci/install_python_deps.sh @@ -6,10 +6,6 @@ this_dir="$(cd $(dirname $0) && pwd)" repo_root="$(cd $this_dir/../.. && pwd)" torch_version="${1:-unknown}" -echo "::group::installing llvm python deps" -python3 -m pip install --no-cache-dir -r $repo_root/externals/llvm-project/mlir/python/requirements.txt -echo "::endgroup::" - case $torch_version in nightly) echo "::group::installing nightly torch" diff --git a/build_tools/python_deploy/build_linux_packages.sh b/build_tools/python_deploy/build_linux_packages.sh index 094518de84a0..b53f7482b839 100755 --- a/build_tools/python_deploy/build_linux_packages.sh +++ b/build_tools/python_deploy/build_linux_packages.sh @@ -337,7 +337,6 @@ function setup_venv() { source /main_checkout/torch-mlir/docker_venv/bin/activate echo ":::: pip installing dependencies" - python3 -m pip install --no-cache-dir -r /main_checkout/torch-mlir/externals/llvm-project/mlir/python/requirements.txt case $torch_version in nightly)