# compiling the .pyx module1import numpy as np2from distutils.core import setup3from Cython.Build import cythonize45# key-value pairs that tell disutils the name6# of the application and which extensions it7# needs to build8# 1. for the cython modules, we're using glob patterns9# e.g. '*.pyx' for every .pyx file or simply pass in10# a list of the filename.pyx11# 2. include_dirs, makes sure we can compile against numpy12# Extension modules that need to compile against NumPy should use this13# function to locate the appropriate include directory14# http://nullege.com/codes/search/numpy.get_include15setup(16name = 'Hello',17ext_modules = cythonize(['helloworld.pyx', 'pairwise1.pyx', 'pairwise2.pyx']),18include_dirs = [np.get_include()]19)2021# after that run22# python setup.py build_ext --inplace23# in the command line, and we can import it like24# normal python modules252627