Install Python module for cross-compile target?
I'm cross compiling ROS Comm Hydro for an i.MX53 Cortex A8 ARM board. I've configured yujin_tools (thanks Daniel) to correctly cross-compile the ROS sources and build-time dependencies and prep them for inclusion into my target's rootfs. Unfortunately, the version of Python provided with the Digi developer tools doesn't have a couple of ROS run-time dependencies, so I'm also cross-compiling Python (2.7). I've done this as well, but I'm unsure how to properly cross-compile/build extra Python modules (like PyYAML). I can build them on-target, but that's not ideal. These modules generally install via "python setup.py install", but I see no way to give a PREFIX argument, among other things.
So, what's the 'correct' way to build third party Python modules that ROS depends on (i.e., PyYAML, setuptools, rospkg, and catkin_pkg), on my host machine, in a way that they can be included in a rootfs image along with the rest of my cross-compiled artifacts?