semvec/pypi-packages huggingface dataset:
distutilscross 0.1
Cross Compile Python Extensions
License: MIT
Keywords: distutils setuptools egg compile cross-compile

Really it lets you cross build binary extensions.

You need to export PYTHONXCPREFIX and LDFLAGS, something like::
  $ export PYTHONXCPREFIX=/opt/eldk/ppc_4xxFP/usr
  $ export LDFLAGS="-L/opt/eldk/ppc_4xxFP/lib -L/opt/eldk/ppc_4xxFP/usr/lib"

It should pick up the correct include paths from the PYTHONXCPREFIX. To build
use::
  $ python setup.py build -x

To make a cross compiled egg::
  $ python setup.py build -x bdist_egg --plat-name linux-ppc --exclude-source-files