Page MenuHomec4science

setup.py.in
No OneTemporary

File Metadata

Created
Sat, Nov 9, 19:51

setup.py.in

from distutils.core import setup
from distutils.core import setup, Extension
from distutils.command.build_ext import build_ext
from distutils.sysconfig import customize_compiler
import os
import sys
os.environ['CC'] = '@CMAKE_CXX_COMPILER@'
os.environ['CXX'] = '@CMAKE_CXX_COMPILER@'
def cmake_to_list(cmake_list):
if cmake_list == '':
return []
return cmake_list.split(';')
class cpp_build_ext(build_ext):
def build_extensions(self):
customize_compiler(self.compiler)
try:
self.compiler.compiler_so.remove("-Wstrict-prototypes")
except (AttributeError, ValueError):
pass
build_ext.build_extensions(self)
setup(
name='akantu',
license='LGPLv3',
version='@AKANTU_VERSION@',
py_modules=['akantu'],
cmdclass={'build_ext': cpp_build_ext},
ext_modules=[Extension(
'_akantu',
cmake_to_list('@_ext_files@'),
include_dirs=cmake_to_list('@_inc_dirs@'),
language='c++',
libraries=cmake_to_list('@_akantu_lib_name@'),
library_dirs=cmake_to_list('@_lib_dirs@'),
extra_compile_args=cmake_to_list('@_flags@')
)]
)

Event Timeline