Skip to content

Instantly share code, notes, and snippets.

@andfoy
Created October 3, 2017 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andfoy/8190b9a6427a7a75f83eb2a934143804 to your computer and use it in GitHub Desktop.
Save andfoy/8190b9a6427a7a75f83eb2a934143804 to your computer and use it in GitHub Desktop.
# 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