Automatic specific compiler (mingw32) for win32 platform

3 views
Skip to first unread message

simon thepot

unread,
May 10, 2010, 5:13:13 AM5/10/10
to coverag...@googlegroups.com
Hi all,
as I tried to contribute to coverage.py, I wonder is there was a way to make thing simpler (ie: to remove some step in the howto.txt) for contributing to this module.

This improvment tries to get rid of the "building" step that need to go patching in your directories for specyfing the compiler to use.

(sample of howto.txt:
- Create PythonXX\Lib\distutils\distutils.cfg::
    [build]
    compiler = mingw32
)

Need to be test on a windows platform, but I think it works and would be a good move to make thing simpler and maybe bring more contributor for coverage.py (by making thiungs simpler and simpler.. I know this only step does not bring much.)

Regards,

Simon Thépot aka djcoin

simon thepot

unread,
May 10, 2010, 5:14:04 AM5/10/10
to coverag...@googlegroups.com

Zooko Wilcox-O'Hearn

unread,
May 10, 2010, 11:24:42 AM5/10/10
to coverag...@googlegroups.com
I think this is a setting that should be in the system where
coverage.py is getting built, not in the coverage.py source. Some
people (unfortunately) have a Microsoft compiler instead of mingw32.

You can set this for all Python packages that you build on your system
by modifying your distutils configuration file:

http://docs.python.org/install/#inst-config-files

Regards,

Zooko

Ned Batchelder

unread,
May 11, 2010, 6:45:42 AM5/11/10
to coverag...@googlegroups.com
That was my feeling as well. I have a line in my howto.txt that
explains how to do this to ensure mingw32 is used. I think Simon is
trying to reduce the amount of per-system setup that needs to be done
before the coverage.py tree can be used for development, which is a
great goal, but this does feel to me like something that shouldn't be
hard-coded into the coverage.py source.

--Ned.

simon thepot

unread,
May 11, 2010, 8:18:41 AM5/11/10
to coverag...@googlegroups.com
All right :)

2010/5/11 Ned Batchelder <n...@nedbatchelder.com>
Reply all
Reply to author
Forward
0 new messages