Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92120423
setup.py.in
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 17, 13:13
Size
1 KB
Mime Type
text/x-python
Expires
Tue, Nov 19, 13:13 (2 d)
Engine
blob
Format
Raw Data
Handle
22378203
Attached To
rAKA akantu
setup.py.in
View Options
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
Log In to Comment