At 04:49 PM 6/30/2005 +0200, M.-A. Lemburg wrote:
Barry Warsaw wrote:
On Thu, 2005-06-30 at 10:01, Paul Moore wrote:
Have you tried
python setup.py build --build-base=whatever install
?
I chain the commands like this to switch compilers on Windows (build --compiler=mingw32 bdist_wininst) and it works fine for that.
Thanks Paul, that does work perfectly. I didn't realize you could chain commands like that!
Aside: you can also put these options into the setup.cfg file, so that you don't have to retype them every time.
Not only that, if you want to always select a particular compiler, you can put it in your $HOME/pydistutils.cfg (Windows) or ~/.pydistutils.cfg (Unixes), or in a distutils.cfg file in the package directory for distutils (any platform). I do this for any new Python install on Windows, and never have to use the --compiler or -c option.