Skip to content

Commit

Permalink
Added support for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Markey, Nigel committed Apr 25, 2017
1 parent ee6fd2c commit 09839e0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,25 @@
)
]

elif os.name =='posix' :
ext_modules=[
Extension("darkflow.cython_utils.nms",
sources=["darkflow/cython_utils/nms.pyx"],
libraries=["m"], # Unix-like specific
include_dirs=[numpy.get_include()]
),
Extension("darkflow.cython_utils.cy_yolo2_findboxes",
sources=["darkflow/cython_utils/cy_yolo2_findboxes.pyx"],
libraries=["m"], # Unix-like specific
include_dirs=[numpy.get_include()]
),
Extension("darkflow.cython_utils.cy_yolo_findboxes",
sources=["darkflow/cython_utils/cy_yolo_findboxes.pyx"],
libraries=["m"], # Unix-like specific
include_dirs=[numpy.get_include()]
)
]

else :
ext_modules=[
Extension("darkflow.cython_utils.nms",
Expand Down

0 comments on commit 09839e0

Please sign in to comment.