Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90377078
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
Fri, Nov 1, 02:32
Size
1 KB
Mime Type
text/x-python
Expires
Sun, Nov 3, 02:32 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
21617142
Attached To
rAKA akantu
setup.py.in
View Options
from distutils.core import setup
from distutils.core import setup, Extension
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(';')
# https://stackoverflow.com/a/29634231
# Remove the "-Wstrict-prototypes" compiler option, which isn't valid for C++.
import distutils.sysconfig
cfg_vars = distutils.sysconfig.get_config_vars()
for key, value in cfg_vars.items():
if type(value) == str:
cfg_vars[key] = value.replace("-Wstrict-prototypes", "")
# ==================================
setup(
name='akantu',
license='LGPLv3',
version='@AKANTU_VERSION@',
py_modules=['akantu'],
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@'),
runtime_library_dirs=cmake_to_list('@_lib_dirs@'),
extra_compile_args=cmake_to_list('@_flags@')
)]
)
Event Timeline
Log In to Comment