Skip to content

Commit 03da861

Browse files
authored
[CI] : Use llvm's python requirements.txt for common py packages. (#4291)
Fixes llvm/torch-mlir-release#17 by reusing the common package versions from LLVM's python requirements in torch-mlir's requirement.txt file. Successful build after the change on torch-mlir-release side: https://github.com/sahas3/torch-mlir-release/actions/runs/16911191818
1 parent dee5158 commit 03da861

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

.github/actions/setup-build/action.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ runs:
3030
with:
3131
python-version: '3.11'
3232

33-
- name: Install MLIR Python depends
34-
if: ${{ runner.os != 'Linux' }}
35-
run: |
36-
python -m pip install -r $GITHUB_WORKSPACE/externals/llvm-project/mlir/python/requirements.txt
37-
shell: bash
38-
3933
- name: Install PyTorch nightly depends
4034
if: ${{ runner.os != 'Linux' }}
4135
run: |

build-requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
numpy
2-
pybind11
1+
-r ./externals/llvm-project/mlir/python/requirements.txt
32
wheel
43
setuptools
54
cmake
65
ninja
76
packaging
8-
nanobind>=2.4, <3.0
97

108
# Workaround for what should be a torch dep
119
# See discussion in #1174

build_tools/ci/install_python_deps.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ this_dir="$(cd $(dirname $0) && pwd)"
66
repo_root="$(cd $this_dir/../.. && pwd)"
77
torch_version="${1:-unknown}"
88

9-
echo "::group::installing llvm python deps"
10-
python3 -m pip install --no-cache-dir -r $repo_root/externals/llvm-project/mlir/python/requirements.txt
11-
echo "::endgroup::"
12-
139
case $torch_version in
1410
nightly)
1511
echo "::group::installing nightly torch"

build_tools/python_deploy/build_linux_packages.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ function setup_venv() {
337337
source /main_checkout/torch-mlir/docker_venv/bin/activate
338338

339339
echo ":::: pip installing dependencies"
340-
python3 -m pip install --no-cache-dir -r /main_checkout/torch-mlir/externals/llvm-project/mlir/python/requirements.txt
341340

342341
case $torch_version in
343342
nightly)

0 commit comments

Comments
 (0)