File tree 5 files changed +11
-4
lines changed
5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ before_install:
203
203
- source multibuild/travis_steps.sh
204
204
- python find_version.py
205
205
- cp LICENSE*.txt cv2/
206
+ - cp opencv/data/haarcascades/*.xml cv2/data/
206
207
- before_install
207
208
208
209
install :
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ if %PYTHON_VERSION% LSS 3 xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\lib\
26
26
27
27
xcopy " %APPVEYOR_BUILD_FOLDER% \opencv\%BUILD_DIR% \bin\Release\*.dll" .\cv2 /I
28
28
xcopy " %APPVEYOR_BUILD_FOLDER% \LICENSE*.txt" .\cv2 /I
29
+ xcopy " %APPVEYOR_BUILD_FOLDER% \opencv\data\haarcascades\*.xml" .\cv2\data /I
29
30
30
31
dir
31
32
Original file line number Diff line number Diff line change 1
1
import importlib
2
+ import os
2
3
3
- # make IDE's (PyCharm) autocompletion happy
4
4
from .cv2 import *
5
+ from .data import *
5
6
6
7
# wildcard import above does not import "private" variables like __version__
7
8
# this makes them available
8
- globals ().update (importlib .import_module ('cv2.cv2' ).__dict__ )
9
+ globals ().update (importlib .import_module ('cv2.cv2' ).__dict__ )
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+ haarcascades = os .path .join (os .path .dirname (__file__ ), '' )
Original file line number Diff line number Diff line change 1
- from setuptools import setup
1
+ from setuptools import setup , find_packages
2
2
from setuptools .dist import Distribution
3
3
import pip
4
4
import os
49
49
package_data ['cv2' ] = ['*.pyd' , '*.dll' ]
50
50
51
51
package_data ['cv2' ] += ["LICENSE.txt" , "LICENSE-3RD-PARTY.txt" ]
52
+ package_data ['' ] = ['*.xml' ]
52
53
53
54
"""
54
55
@@ -80,7 +81,7 @@ def __len__(self):
80
81
license = 'MIT' ,
81
82
description = 'Wrapper package for OpenCV python bindings.' ,
82
83
long_description = long_description ,
83
- packages = [ 'cv2' ] ,
84
+ packages = find_packages () ,
84
85
package_data = package_data ,
85
86
maintainer = "Olli-Pekka Heinisuo" ,
86
87
include_package_data = True ,
You can’t perform that action at this time.
0 commit comments