This commit is contained in:
Vitor Santos Costa
2018-03-28 08:54:51 +01:00
parent e3ac349a0d
commit 508e10d0be
15 changed files with 0 additions and 636 deletions

View File

@@ -1,3 +0,0 @@
// make Python happy...

View File

@@ -1,38 +0,0 @@
from distutils.core import setup, Extension
import sys
import os
import platform
if platform.system() == 'Darwin':
my_extra_link_args = ['-Wl,-rpath','-Wl,${dlls}']
else:
my_extra_link_args = []
python_sources = ['${CMAKE_CURRENT_SOURCE_DIR}/../yap.i']
setup(
name = "yap",
version = "0.1",
ext_modules=[Extension('_yap', python_sources,
define_macros = [('MAJOR_VERSION', '1'),
('MINOR_VERSION', '0'),
('_YAP_NOT_INSTALLED_', '1'),
('YAP_PYTHON', '1')],
runtime_library_dirs=[,'$(bindir)'],
swig_opts=['-modern','-outcurrentdir', '-c++', '-py3','-I${CMAKE_SOURCE_DIR}/CXX'],
library_dirs=["${dlls}","${bindir}",
'.'],
extra_link_args=my_extra_link_args,
libraries=['Yap','{GMP_LIBRARIES}'],
include_dirs=['../../..',
'${GMP_INCLUDE_DIRS}',
'${CMAKE_SOURCE_DIR}/H',
'${CMAKE_SOURCE_DIR}/H/generated',
'${CMAKE_SOURCE_DIR}/OPTYap',
'${CMAKE_SOURCE_DIR}/os',
'${CMAKE_SOURCE_DIR}/include',
'${CMAKE_SOURCE_DIR}/CXX', '.']
)],
py_modules = ['yap', '${CMAKE_SOURCE_DIR}/packages/python/yapex']
)