Exemple #1
0
    def __init__(self, *args, **kw):
        CCompiler.__init__(self, *args, **kw)
        self.distutils_vars = self.distutils_vars.clone(self._environment_hook)
        self.command_vars = self.command_vars.clone(self._environment_hook)
        self.flag_vars = self.flag_vars.clone(self._environment_hook)
        self.executables = self.executables.copy()
        for e in self._executable_keys:
            if e not in self.executables:
                self.executables[e] = None

        # Some methods depend on .customize() being called first, so
        # this keeps track of whether that's happened yet.
        self._is_customised = False
Exemple #2
0
    def __init__(self, *args, **kw):
        CCompiler.__init__(self, *args, **kw)
        self.distutils_vars = self.distutils_vars.clone(self._environment_hook)
        self.command_vars = self.command_vars.clone(self._environment_hook)
        self.flag_vars = self.flag_vars.clone(self._environment_hook)
        self.executables = self.executables.copy()
        for e in self._executable_keys:
            if e not in self.executables:
                self.executables[e] = None

        # Some methods depend on .customize() being called first, so
        # this keeps track of whether that's happened yet.
        self._is_customised = False
Exemple #3
0
 def get_version(self, force=False, ok_status=[0]):
     assert self._is_customised
     version = CCompiler.get_version(self, force=force, ok_status=ok_status)
     if version is None:
         raise CompilerNotFound()
     return version
Exemple #4
0
 def get_version(self, force=False, ok_status=[0]):
     assert self._is_customised
     version = CCompiler.get_version(self, force=force, ok_status=ok_status)
     if version is None:
         raise CompilerNotFound()
     return version
Exemple #5
0
 def get_version(self, force=False, ok_status=[0]):
     assert self._is_customised
     return CCompiler.get_version(self, force=force, ok_status=ok_status)
Exemple #6
0
 def get_version(self, force=False, ok_status=[0]):
     assert self._is_customised
     return CCompiler.get_version(self, force=force, ok_status=ok_status)