twisted.python._setup.ConditionalExtension(Extension, object)
class documentationtwisted.python._setup
View Source
(View In Hierarchy)
An extension module that will only be compiled if certain conditions are met.
Parameters | condition | A callable of one argument which returns True or False to indicate whether the extension should be built. The argument is an instance of build_ext_twisted , which has useful methods for checking things about the platform. |