summaryrefslogtreecommitdiff
path: root/distutils2/compiler
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2010-11-11 22:17:50 +0100
committerTarek Ziade <tarek@ziade.org>2010-11-11 22:17:50 +0100
commit40d01f445415ad0613f1846715440d089f45ef9a (patch)
treecc702f85d2a94582ec95bbc14270f4a7ed48efc8 /distutils2/compiler
parente135122fb2f4519eaa224b67bfbff6bb7159a8f9 (diff)
downloaddisutils2-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__.py6
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").