super(PythonTask, self).__init__(context, workdir)
self.conn_timeout = (self.context.options.python_conn_timeout or
self.context.config.getdefault("connection_timeout"))
compatibilities = self.context.options.interpreter or [b""]
self.interpreter_cache = PythonInterpreterCache(self.context.config,
logger=self.context.log.debug)
// We pass in filters=compatibilities because setting up some python versions
// (e.g., 3<=python<3.3) crashes, and this gives us an escape hatch.
self.interpreter_cache.setup(filters=compatibilities)
// Select a default interpreter to use.
self._interpreter = self.select_interpreter(compatibilities)
@property
def interpreter(self):
Subclasses can use this if they"re fine with the default interpreter (the usual case).