[Distutils] cross compiling using setuptools
Phillip J. Eby
pje at telecommunity.com
Mon Oct 9 00:21:04 CEST 2006
At 02:54 PM 10/8/2006 -0700, Venkat Bommakanti wrote:
>Using $HOME/.pydistutils.cfg may not be a viable option due the fact
>that it'd reside outside the <snapped> source tree, and could become a
>maintenance issue... Would like a solution where one gets the cfg file
>(or equivalent) when they snap a tree direct...
>I was hoping something like:
> <top-of-src-tree>/TurboGears/<pydistutils.cfg or setup.cfg equivalent>
>with info relevant to:
> compiler = $COMPILER (native or cross-gcc)
> plat_name = $TARGET (i686 or ppc)
> exclude_source = 1
>would let me specify (target-based) info that is picked up according
>to the build target.
You could certainly put some code in setup.py that *generates* a setup.cfg
based on this kind of information, if it's found in the environment, sure.
More information about the Distutils-SIG