def METHOD_NAME(self, ext):
    extdir = os.path.abspath(os.path.dirname(self.get_ext_fullpath(ext.name)))
    cmake_args = [
        '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON',
        '-DCMAKE_CXX_COMPILER=@CMAKE_CXX_COMPILER@',
        '-DCMAKE_C_COMPILER=@CMAKE_C_COMPILER@',
        '-DCMAKE_INSTALL_PREFIX=@CMAKE_INSTALL_PREFIX@',
        '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir,
        '-DPYTHON_EXECUTABLE=' + sys.executable,
        '-DFEELPP_DIR=@FEELPP_DIR@',
        '-DFEELPP_TOOLBOXES_DIR=@FEELPP_TOOLBOXES_DIR@']
    if @PYFEELPP_SETUP_HAS_PARAVIEW_CMAKE_ARGS@ == 1 :
        cmake_args += @PYFEELPP_SETUP_PARAVIEW_CMAKE_ARGS@
    cfg = 'Debug' if self.debug else 'Release'
    build_args = ['--config', cfg]
    if platform.system() == "Windows":
        cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}'.format(cfg.upper(), extdir)]
        if sys.maxsize > 2**32:
            cmake_args += ['-A', 'x64']
        build_args += ['--', '/m']
    else:
        cmake_args += ['-DCMAKE_BUILD_TYPE=' + cfg]
        build_args += ['--', '-j2']
    env = os.environ.copy()
    env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(env.get('CXXFLAGS', ''),
                                                          self.distribution.get_version())
    env['PYTHONPATH'] = '@PYFEELPP_TOOLBOXES_PYTHONPATH@'
    self.build_temp=self.build_temp+"-"+ext.name
    print(self.build_temp)
    if not os.path.exists(self.build_temp):
        os.makedirs(self.build_temp)
    subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
    subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)