def clean(): global LIBRARY_DIRS, ALL_LIBRARIES os.remove('np-include.info') LIBRARY_DIRS = [i for i in LIBRARY_DIRS if i != ""] ALL_LIBRARIES = [i for i in ALL_LIBRARIES if i != ""] with open('README.md', encoding='utf-8') as f: long_description = f.read() try: if LIBRARY_DIRS: ALL_LIBRARIES.append(find_dep_lib_name(os.environ['LD_LIBRARY_PATH'])) if find_boost_version() < 165: copy_files(FILES, npath('source-cpp/.DEPRECATED')) LIBRARY_DIRS += find_dep_lib_dirs() ALL_LIBRARIES.append(find_dep_lib_name()) else: copy_files(FILES, npath('source-cpp/.NEW')) LIBRARY_DIRS += find_library_dirs() ALL_LIBRARIES += ['boost_python3', 'boost_numpy3'] clean() module1 = Extension( 'pyBKT/generate/synthetic_data_helper', sources=[npath('source-cpp/pyBKT/generate/synthetic_data_helper.cpp')], include_dirs=INCLUDE_DIRS, extra_compile_args=ALL_COMPILE_ARGS, library_dirs=LIBRARY_DIRS,
def copy_files(l, s): for i in l: copyfile(npath(s + "/" + i), npath(l[i] + "/" + i))
def clean(): global LIBRARY_DIRS, ALL_LIBRARIES LIBRARY_DIRS = [i for i in LIBRARY_DIRS if i != ""] ALL_LIBRARIES = [i for i in ALL_LIBRARIES if i != ""] with open('README.md', encoding='utf-8') as f: long_description = f.read() LIBRARY_DIRS += [sys.exec_prefix + '/lib'] clean() try: module1 = Extension( 'pyBKT/generate/synthetic_data_helper', sources=[npath('source-cpp/pyBKT/generate/synthetic_data_helper.cpp')], include_dirs=INCLUDE_DIRS, extra_compile_args=ALL_COMPILE_ARGS, library_dirs=LIBRARY_DIRS, libraries=ALL_LIBRARIES, extra_link_args=ALL_LINK_ARGS) module2 = Extension('pyBKT/fit/E_step', sources=[npath('source-cpp/pyBKT/fit/E_step.cpp')], include_dirs=INCLUDE_DIRS, extra_compile_args=ALL_COMPILE_ARGS, library_dirs=LIBRARY_DIRS, libraries=ALL_LIBRARIES, extra_link_args=ALL_LINK_ARGS) module3 = Extension(