NihalGazi commited on
Commit
3cedcc7
·
verified ·
1 Parent(s): c8915b6

Create setup.cfg

Browse files
Files changed (1) hide show
  1. setup.cfg +26 -0
setup.cfg ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from setuptools import setup, Extension
2
+ import numpy
3
+
4
+ opencv_include = "/path/to/opencv-install/include"
5
+ opencv_libs = "/path/to/opencv-install/lib"
6
+
7
+ _stasm = Extension(
8
+ '_stasm',
9
+ sources=['src/MOD_1/facedet.cpp', 'src/MOD_1/some_other_file.cpp'],
10
+ include_dirs=[
11
+ numpy.get_include(),
12
+ opencv_include,
13
+ opencv_include + '/opencv4'
14
+ ],
15
+ library_dirs=[opencv_libs],
16
+ libraries=['opencv_core', 'opencv_imgproc', 'opencv_highgui', 'opencv_imgcodecs'],
17
+ extra_compile_args=['-std=c++11']
18
+ )
19
+
20
+ setup(
21
+ name='stasm',
22
+ version='2.0.2',
23
+ packages=['stasm', 'stasm.data'],
24
+ ext_modules=[_stasm],
25
+ install_requires=['numpy', 'docopt']
26
+ )