def METHOD_NAME(self):
    if self.options.with_python:
        if is_msvc(self):
            # Required to create import .lib for building extension module.
            self.options["cpython"].shared = True