Package _setup :: Module ext :: Class ConfTest
[hide private]
[frames] | no frames]

Class ConfTest

source code

object --+
         |
        ConfTest

Single conftest abstraction
Instance Methods [hide private]
 
__init__(self, build, source)
Initialization
source code
 
__del__(self)
Destruction
source code
 
destroy(self)
Destroy the conftest leftovers on disk
source code
bool
compile(self, **kwargs)
Compile the conftest
source code
bool
link(self, **kwargs)
Link the conftest
source code
file
pipe(self, mode='r')
Execute the conftest binary and connect to it using a pipe
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
str _tempdir = None
The tempdir created for this test
CCompiler compiler
compiler instance
list obj
List of object filenames ([str, ...])
str src
Name of the source file
str target
Target filename
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, build, source)
(Constructor)

source code 
Initialization
Parameters:
  • build (distuils.command.build_ext.build_ext) - builder instance
  • source (str) - Source of the file to compile
Overrides: object.__init__

compile(self, **kwargs)

source code 
Compile the conftest
Parameters:
  • kwargs (dict) - Optional keyword parameters for the compiler call
Returns: bool
Was the compilation successful?

link(self, **kwargs)

source code 

Link the conftest

Before you can link the conftest objects they need to be compiled.

Parameters:
  • kwargs (dict) - Optional keyword parameters for the linker call
Returns: bool
Was the linking successful?

pipe(self, mode='r')

source code 

Execute the conftest binary and connect to it using a pipe

Before you can pipe to or from the conftest binary it needs to be linked.

Parameters:
  • mode (str) - Pipe mode - r/w
Returns: file
The open pipe