-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
26 lines (19 loc) · 970 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from distutils.core import setup, Extension
import os
import sysconfig
import numpy
extra_compile_args = sysconfig.get_config_var('CFLAGS').split()
extra_compile_args += ["-std=c++11", "-Wall", "-Wextra", '-L/usr/local/lib/','-lgslcblas', '-lgsl' ,'-lm']
module1 = Extension('cfar',
include_dirs = [
# '/media/nasir/Drive/code/ibis_extension/ibis_lib',
'/media/nasir/Drive1/code/SAR/AutomatedSARShipDetection/python_cfar/','/usr/local/lib/', numpy.get_include()],
library_dirs = ['/usr/local/lib/'],
libraries = ['opencv_core', 'opencv_highgui','opencv_video','opencv_videoio', 'gsl', 'gslcblas'],
extra_compile_args=extra_compile_args,
sources = [ 'main.cpp']
)
setup (name = 'cfar',
version = '1.0',
description = 'This is a demo package',
ext_modules = [module1])