Commit 4230fac
### What changes were proposed in this pull request?
This PR pin `meson<1.11.0` and `lxml==4.9.4` to recover CI.
### Why are the changes needed?
Recently, CI fails due to docker image building failure.
https://github.com/apache/spark/actions/runs/24489111484/job/71571576157
The root causes are:
* meson `1.11.0` was recently released and pandas 2.3.3 can not be built with it (pandas-dev/pandas#65252)
* Newer lxml was also released (https://pypi.org/project/lxml/#history). This PR pin to `4.9.4` to consistent with the version specified in `.github/workflows/build_and_test.yml`.
Without pinning `lxml`, `docker build` will fail with following error.
```
538.3 Collecting lxml
538.3 Downloading lxml-6.0.4.tar.gz (4.2 MB)
538.4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 91.5 MB/s 0:00:00
538.7 Installing build dependencies: started
540.6 Installing build dependencies: finished with status 'done'
540.6 Getting requirements to build wheel: started
541.3 Getting requirements to build wheel: finished with status 'error'
541.3 error: subprocess-exited-with-error
541.3
541.3 × Getting requirements to build wheel did not run successfully.
541.3 │ exit code: 1
541.3 ╰─> [3 lines of output]
541.3 Building lxml version 6.0.4.
541.3 Building without Cython.
541.3 Error: Please make sure the libxml2 and libxslt development packages are installed.
541.3 [end of output]
541.3
541.3 note: This error originates from a subprocess, and is likely not a problem with pip.
541.3 ERROR: Failed to build 'lxml' when getting requirements to build wheel
------
Dockerfile:67
--------------------
66 | RUN curl -sS https://bootstrap.pypa.io/get-pip.py | pypy3
67 | >>> RUN echo 'meson<1.11.0' > /tmp/constraints.txt && \
68 | >>> PIP_CONSTRAINT=/tmp/constraints.txt pypy3 -m pip install numpy 'six==1.16.0' 'pandas==2.3.3' scipy coverage matplotlib lxml && \
69 | >>> rm -f /tmp/constraints.txt
70 |
--------------------
```
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Confirmed that `docker build` works for both `dev/infra/Dockerfile` and `dev/spark-test-image/pypy-310/Dockerfile`
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #55369 from sarutak/pin-meson-lxml.
Authored-by: Kousuke Saruta <sarutak@amazon.co.jp>
Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com>
1 parent cd64def commit 4230fac
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments