summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-07-20 13:10:39 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-07-22 16:11:01 +0800
commit87fbb721e6562758cfb1677536d0fe65dc66892a (patch)
tree1967ac6c0cb533dd8ccb79b5c02323f03c41caa2
parent1a5ea29e1e71ba8f9eaf731cf8b5cf631ee006d4 (diff)
downloadgobject-introspection-87fbb721e6562758cfb1677536d0fe65dc66892a.tar.gz
giscanner/ccompiler.py: Partially Revert c9cfa2b
For switching to distutils for generating (preprocessing the various headers and sources), compiling and linking the dumper sources, we need to ensure that distutils, in particular the distutils compiler modules that the various Windows build flavors use, are imported, so that this will work. The part removed from this file in commit c9cfa1b was added there as that was a part of the ongoing work to make g-i more portable across OS's, which sat in BZ for a long, long time, hoping that things didn't bitrot badly :| https://bugzilla.gnome.org/show_bug.cgi?id=728313
-rw-r--r--giscanner/ccompiler.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 2db535cb..aeaa5b5a 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -21,6 +21,13 @@
import os
import subprocess
+import sys
+import distutils
+
+from distutils.msvccompiler import MSVCCompiler
+from distutils.cygwinccompiler import Mingw32CCompiler
+from distutils.sysconfig import customize_compiler
+
from . import utils