I would need to deploy platform-specific package data in the wheels built with setup.py
For a bit of background, I am trying to create Python bindings for a certain library using pre-built binaries and ctypesgen. I have a data tree with platform-specific subdirectories that contain a bindings file and a binary each:
data/
macos-arm64/
_bindings.py
binary.dylib
linux-x64/
_bindings.py
binary.so
windows-x64/
_bindings.py
binary.dll
...
And I have a source tree:
src/
package_name/
__init__.py
__main__.py
...
Question: How can I build platform-specific packages that only contain the one corresponding binary and bindings?
The final directory tree as deployed to the end-user should structurally look like this:
package_name/
__init__.py
__main__.py
_bindings.py
binary.xyz
...