diff options
| author | Tarek Ziade <tarek@ziade.org> | 2010-11-11 22:17:50 +0100 |
|---|---|---|
| committer | Tarek Ziade <tarek@ziade.org> | 2010-11-11 22:17:50 +0100 |
| commit | 40d01f445415ad0613f1846715440d089f45ef9a (patch) | |
| tree | cc702f85d2a94582ec95bbc14270f4a7ed48efc8 /distutils2/compiler | |
| parent | e135122fb2f4519eaa224b67bfbff6bb7159a8f9 (diff) | |
| download | disutils2-40d01f445415ad0613f1846715440d089f45ef9a.tar.gz | |
now you can register your custom compilers using the .cfg files
Diffstat (limited to 'distutils2/compiler')
| -rw-r--r-- | distutils2/compiler/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/distutils2/compiler/__init__.py b/distutils2/compiler/__init__.py index b3ece8b..51b7da3 100644 --- a/distutils2/compiler/__init__.py +++ b/distutils2/compiler/__init__.py @@ -111,6 +111,12 @@ _COMPILERS = {'unix': 'distutils2.compiler.unixccompiler.UnixCCompiler', 'mingw32': 'distutils2.compiler.cygwinccompiler.Mingw32CCompiler', 'bcpp': 'distutils2.compilers.bcppcompiler.BCPPCompiler'} + +def set_compiler(name, location): + """Add or change a compiler""" + _COMPILERS[name] = location + + def show_compilers(): """Print list of available compilers (used by the "--help-compiler" options to "build", "build_ext", "build_clib"). |
