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)@propertydef interpreter(self):
Subclasses can use thisif they"re fine with the defaultinterpreter(the usual case).