I'm trying to cross-compile py-spidev module for an ARM9 (embedded system).
In an Ubuntu 64-bit VM, I did this(in my home directory):
git clone https://github.com/doceme/py-spidev
cd py-spidev
export PATH=$PATH:"Path_to_my_cross_compiler"
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
python setup.py install --prefix=~/
But spidev_module.c is compiled with x86_64-linux-gnu-gcc and not my cross-compiler (arm-poky-linux-gnueabi-gcc).
How can I force python setup.py install to use my cross compiler?