You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 1.4 kB

123456789101112131415161718192021222324252627282930313233
  1. from distutils.extension import Extension
  2. from distutils.core import setup
  3. from Cython.Build import cythonize
  4. import os
  5. import shutil
  6. # clean previous build
  7. for name in os.listdir():
  8. if (name.startswith('gedlibpy') and not(name.endswith('.pyx') or name.endswith('.pxd'))):
  9. os.remove(name)
  10. if name == 'build':
  11. shutil.rmtree(name)
  12. extensions = [Extension("gedlibpy",
  13. # sources=["gedlibpy.pyx", "src/GedLibBind.cpp"],
  14. sources=["gedlibpy.pyx"],
  15. include_dirs=["src", "include", "include/lsape", "include/Eigen", "include/nomad", "include/sgtelib", "include/libsvm.3.22", "include/fann", "include/boost_1_69_0"],
  16. library_dirs=["lib/fann", "lib/gedlib", "lib/libsvm.3.22","lib/nomad"],
  17. libraries=["doublefann", "sgtelib", "svm", "nomad"],
  18. # library_dirs=["."],
  19. # libraries=["gxlgedlib"],
  20. language="c++",
  21. extra_compile_args=["-std=c++11"],
  22. extra_link_args=["-std=c++11"])]
  23. setup(ext_modules=cythonize(extensions,
  24. compiler_directives={'language_level': '3'}))
  25. # setup(ext_modules=cythonize(extensions))
  26. # Commande Bash : python setup.py build_ext --inplace

A Python package for graph kernels, graph edit distances and graph pre-image problem.