(self, verbose=False)
| 68 | return found |
| 69 | |
| 70 | def is_compatible(self, verbose=False): |
| 71 | # Check for the existence of libaio by using distutils |
| 72 | # to compile and link a test program that calls io_submit, |
| 73 | # which is a function provided by libaio that is used in the async_io op. |
| 74 | # If needed, one can define -I and -L entries in CFLAGS and LDFLAGS |
| 75 | # respectively to specify the directories for libaio.h and libaio.so. |
| 76 | aio_compatible = self.has_function('io_pgetevents', ('aio', )) |
| 77 | if verbose and not aio_compatible: |
| 78 | self.warning(f"{self.NAME} requires the dev libaio .so object and headers but these were not found.") |
| 79 | |
| 80 | # Check for the libaio package via known package managers |
| 81 | # to print suggestions on which package to install. |
| 82 | self.check_for_libaio_pkg() |
| 83 | |
| 84 | self.warning( |
| 85 | "If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found." |
| 86 | ) |
| 87 | return super().is_compatible(verbose) and aio_compatible |
nothing calls this directly
no test coverage detected