Created
October 3, 2017 03:14
-
-
Save andfoy/8190b9a6427a7a75f83eb2a934143804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Third party imports | |
import numpy as np | |
from Cython.Build import cythonize | |
from setuptools import Extension, find_packages, setup | |
ext_modules = [ | |
Extension( | |
'util.nms', | |
sources=['util/external/nms.pyx'], | |
include_dirs=[np.get_include()], | |
extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'], | |
) | |
] | |
setup( | |
name='util', | |
ext_modules=cythonize(ext_modules) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment