Skip to content

Remove depends/install_raqm_cmake.sh; update FreeBSD instructions - #9927

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
akx:no-install-raqm-cmake
Sep 1, 2026
Merged

Remove depends/install_raqm_cmake.sh; update FreeBSD instructions#9927
radarhere merged 1 commit into
python-pillow:mainfrom
akx:no-install-raqm-cmake

Conversation

@akx

@akx akx commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Refs #9926 (noticed while reviewing it).

Changes proposed in this pull request:

  • Removes depends/install_raqm_cmake.sh, which doesn't seem to be required anymore: it was added in 2017 in 57632d5 and is only ever mentioned in the "only tested on FreeBSD 10/11" (EOL for 7 and 6 years respectively) instructions.
  • Updates FreeBSD instructions and notes PIL 13.0.0dev0 is buildable from source on FreeBSD 15.1.

FreeBSD 15.1 build log

In QEMU, from FreeBSD-15.1-RELEASE-arm64-aarch64-ufs.qcow2:

FreeBSD/arm64 (freebsd) (ttyu0)

login: root
Last login: Sat Aug 29 13:22:36 on ttyu0
Aug 29 13:23:10 freebsd login[2541]: ROOT LOGIN (root) ON ttyu0
FreeBSD 15.1-RELEASE (GENERIC) releng/15.1-n283562-96841ea08dcf
[...]
root@freebsd:~ # pkg update
root@freebsd:~ # pkg install git python3 py312-pip jpeg-turbo tiff webp lcms2 freetype2 openjpeg harfbuzz fribidi libxcb libavif libraqm libimagequant
root@freebsd:~ # git clone https://github.com/Python-Pillow/pillow
root@freebsd:~ # cd pillow/
root@freebsd:~/pillow # python3 -m pip install --user -e .
Obtaining file:///root/pillow
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: pillow
  Building editable for pillow (pyproject.toml) ... done
  Created wheel for pillow: filename=pillow-13.0.0.dev0-0.editable-cp312-cp312-freebsd_15_1_release_arm64.whl size=4490 sha256=f67e978bd267ae0e7e0c4633897a949fae85605d8b1b9ced5a53c1a99419e6c2
  Stored in directory: /tmp/pip-ephem-wheel-cache-9woqndt6/wheels/1e/6b/1c/fbeba76d72ab49fcd42ea5935945e965a1c27c8f20681c6eb2
Successfully built pillow
Installing collected packages: pillow
  Attempting uninstall: pillow
    Found existing installation: pillow 13.0.0.dev0
    Uninstalling pillow-13.0.0.dev0:
      Successfully uninstalled pillow-13.0.0.dev0
Successfully installed pillow-13.0.0.dev0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@freebsd:~/pillow # python3 -m PIL.report
--------------------------------------------------------------------
Pillow 13.0.0.dev0
Python 3.12.14 (main, Aug 20 2026, 01:32:16) [Clang 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd7080
--------------------------------------------------------------------
Python executable is /usr/local/bin/python3
System Python files loaded from /usr/local
--------------------------------------------------------------------
Python Pillow modules loaded from /root/pillow/src/PIL
Binary Pillow modules loaded from /root/pillow/src/PIL
--------------------------------------------------------------------
--- PIL CORE support ok, compiled for 13.0.0.dev0
*** TKINTER support not installed
--- FREETYPE2 support ok, loaded 2.14.3
--- LITTLECMS2 support ok, loaded 2.19
--- WEBP support ok, loaded 1.6.0
--- AVIF support ok, loaded 1.4.2
--- JPEG support ok, compiled for libjpeg-turbo 3.1.4.1
--- OPENJPEG (JPEG2000) support ok, loaded 2.5.4
--- ZLIB (PNG/ZIP) support ok, loaded 1.3.2
--- LIBTIFF support ok, loaded 4.7.1
--- RAQM (Bidirectional Text) support ok, loaded 0.10.3
--- LIBIMAGEQUANT (Quantization method) support ok, loaded 4.2.2
--- XCB (X protocol) support ok
--------------------------------------------------------------------
root@freebsd:~/pillow # uname -a
FreeBSD freebsd 15.1-RELEASE FreeBSD 15.1-RELEASE releng/15.1-n283562-96841ea08dcf GENERIC arm64
root@freebsd:~/pillow # pkg search py312-pillow
py312-pillow-11.3.0_2          Fork of the Python Imaging Library (PIL)
root@freebsd:~/pillow #

Comment thread docs/installation/platform-support.rst Outdated
@akx
akx force-pushed the no-install-raqm-cmake branch from f0e07e1 to 4ea61af Compare September 1, 2026 06:27
@akx
akx requested a review from radarhere September 1, 2026 06:27
@radarhere

Copy link
Copy Markdown
Member

Removes depends/install_raqm_cmake.sh, which doesn't seem to be required anymore: it was added in 2017

#4109 removed depends/freebsd_10.sh, which used it.

**Packages**::

pkg install py38-pillow
pkg install py312-pillow

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For the record, why Python 3.12 and not Python 3.14?

@akx akx Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No such thing on this version of FreeBSD.

root@freebsd:~ # pkg update
root@freebsd:~ # pkg search pillow
libpillowfight-0.3.1           Library containing various image processing algorithms
py312-pillow-11.3.0_2          Fork of the Python Imaging Library (PIL)
py312-pillow-heif-1.4.0        Python interface for libheif library
py312-pypillowfight-0.3.0_3    Library containing various image processing algorithms
root@freebsd:~ #

@radarhere radarhere added the Linux label Sep 1, 2026
@radarhere
radarhere merged commit 4adb453 into python-pillow:main Sep 1, 2026
53 checks passed
@akx
akx deleted the no-install-raqm-cmake branch September 1, 2026 06:56
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