def METHOD_NAME(self):
    if self.env.MACOSX_DEPLOYMENT_TARGET:
        os.environ['MACOSX_DEPLOYMENT_TARGET'] = self.env.MACOSX_DEPLOYMENT_TARGET
    elif 'MACOSX_DEPLOYMENT_TARGET' not in os.environ:
        if Utils.unversioned_sys_platform() == 'darwin':
            os.environ['MACOSX_DEPLOYMENT_TARGET'] = '.'.join(platform.mac_ver()[0].split('.')[:2])