Skip to content

Add PyPy3.11 to CI #8758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2025
Merged

Add PyPy3.11 to CI #8758

merged 2 commits into from
Feb 17, 2025

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Feb 16, 2025

PyPy v7.3.18 is out:

This release includes a python 3.11 interpreter. We are labelling it "beta" because it is the first one. In the next release we will drop 3.10 and remove the "beta" label.

https://pypy.org/posts/2025/02/pypy-v7318-release.html


#8757 already updated src/thirdparty/pythoncapi_compat.h, this is how it looked without it:

https://github.com/hugovk/Pillow/actions/runs/13203645421/job/36861505207

We also need to skip NumPy for now:

      [288/320] Compiling C object numpy/random/_mt19937.pypy311-pp73-darwin.so.p/meson-generated_numpy_random__mt19937.pyx.c.o
      FAILED: numpy/random/_mt19937.pypy311-pp73-darwin.so.p/meson-generated_numpy_random__mt19937.pyx.c.o
      cc -Inumpy/random/_mt19937.pypy311-pp73-darwin.so.p -Inumpy/random -I../numpy/random -I../numpy/random/src -Inumpy/_core -I../numpy/_core -Inumpy/_core/include -I../numpy/_core/include -I../numpy/_core/src/common -Inumpy -I/Users/runner/hostedtoolcache/PyPy/3.11.11/arm64/include/pypy3.11 -I/private/var/folders/s3/vj2zzxnd01l53jcjc04ljvz80000gn/T/pip-install-maut6y05/numpy_06cedbb72a3e4bbd8e8f8f77a973eb38/.mesonpy-9_4rjp9t/meson_cpu -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c11 -O3 -fno-strict-aliasing -ftrapping-math -DNPY_HAVE_CLANG_FPSTRICT -DNPY_HAVE_NEON_VFPV4 -DNPY_HAVE_NEON_FP16 -DNPY_HAVE_NEON -DNPY_HAVE_ASIMD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNPY_NO_DEPRECATED_API=0 -MD -MQ numpy/random/_mt19937.pypy311-pp73-darwin.so.p/meson-generated_numpy_random__mt19937.pyx.c.o -MF numpy/random/_mt19937.pypy311-pp73-darwin.so.p/meson-generated_numpy_random__mt19937.pyx.c.o.d -o numpy/random/_mt19937.pypy311-pp73-darwin.so.p/meson-generated_numpy_random__mt19937.pyx.c.o -c numpy/random/_mt19937.pypy311-pp73-darwin.so.p/numpy/random/_mt19937.pyx.c
      numpy/random/_mt19937.pypy311-pp73-darwin.so.p/numpy/random/_mt19937.pyx.c:12442:12: fatal error: 'internal/pycore_frame.h' file not found
        #include "internal/pycore_frame.h"
                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      [289/320] Compiling Cython source /private/var/folders/s3/vj2zzxnd01l53jcjc04ljvz80000gn/T/pip-install-maut6y05/numpy_06cedbb72a3e4bbd8e8f8f77a973eb38/numpy/random/_philox.pyx
      [290/320] Compiling C++ object numpy/fft/_pocketfft_umath.pypy311-pp73-darwin.so.p/_pocketfft_umath.cpp.o
      [291/320] Compiling Cython source numpy/random/_bounded_integers.pyx
      [292/320] Compiling Cython source /private/var/folders/s3/vj2zzxnd01l53jcjc04ljvz80000gn/T/pip-install-maut6y05/numpy_06cedbb72a3e4bbd8e8f8f77a973eb38/numpy/random/_common.pyx
      ninja: build stopped: subcommand failed.

https://github.com/hugovk/Pillow/actions/runs/13203963591/job/36862554511


Also fix some ShellCheck warnings in .ci/install.sh.

@hugovk hugovk added the Testing label Feb 16, 2025
.ci/install.sh Outdated
# NumPy doesn't support PyPy3.11
if [[ $GHA_PYTHON_VERSION != pypy3.11 ]]; then
python3 -m pip install numpy
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, the previously-failing job passes on a re-run.

https://github.com/hugovk/Pillow/actions/runs/13203963591/job/37329242544

I've rebased the skip out :)

@radarhere radarhere merged commit 1ac527a into python-pillow:main Feb 17, 2025
54 checks passed
@hugovk hugovk deleted the pypy3.11 branch February 17, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants