capnproto / pycapnp

Cap'n Proto serialization/RPC system - Python bindings
BSD 2-Clause "Simplified" License
458 stars 125 forks source link

Add custom build backend to support build args #328

Closed tobiasah closed 9 months ago

tobiasah commented 9 months ago

This implements a custom build backend, inspired by the solution used by Pillow.

install-option is deprecated and was removed with pip 23.1. The comonly accepted solution seems to be to define a custom build backend for now https://github.com/pypa/setuptools/issues/2491#issuecomment-1589764230

This commit changes the usage from --install-option to --config-settings.

tobiasah commented 9 months ago

As mentioned here https://github.com/capnproto/pycapnp/issues/323 the support for the latest pypi version should be addressed sooner than later.

@haata not sure if you already prepared something similar. This is just a proposal. I stayed with the arguments names already used ... I did not change anything else in the setup process (although it could need a polish) but I am happy to do this after this first adaption