rougier / freetype-py

Python binding for the freetype library
Other
304 stars 88 forks source link

use custom PEP517 build backend to require cmake conditionally #184

Closed anthrotype closed 7 months ago

anthrotype commented 7 months ago

Fixes https://github.com/rougier/freetype-py/issues/183

pip install --no-binary freetype-py freetype-py will no longer attempt to download and install cmake in pip's temporary build environment, unless FREETYPEPY_BUNDLE_FT environment variable was set in order to compile the bundled FreeType shared library.

This makes the installation of a pure Python freetype-py (using system-wide FreeType library) quicker and doesn't require one to force --no-build-isolation just to prevent cmake from being installed unnecessarily.

anthrotype commented 7 months ago

also note the CI is currently broken (see latest failed build https://github.com/rougier/freetype-py/actions/runs/8204508642), bumping cibuildwheel to latest like this PR is doing also fixes that, one reason more to merge.