File tree Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ before_install:
203203 - source multibuild/travis_steps.sh
204204 - python find_version.py
205205 - cp LICENSE*.txt cv2/
206+ - cp opencv/data/haarcascades/*.xml cv2/data/
206207 - before_install
207208
208209install :
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\
2626
2727xcopy " %APPVEYOR_BUILD_FOLDER% \opencv\%BUILD_DIR% \bin\Release\*.dll" .\cv2 /I
2828xcopy " %APPVEYOR_BUILD_FOLDER% \LICENSE*.txt" .\cv2 /I
29+ xcopy " %APPVEYOR_BUILD_FOLDER% \opencv\data\haarcascades\*.xml" .\cv2\data /I
2930
3031dir
3132
Original file line number Diff line number Diff line change 11import importlib
2+ import os
23
3- # make IDE's (PyCharm) autocompletion happy
44from .cv2 import *
5+ from .data import *
56
67# wildcard import above does not import "private" variables like __version__
78# 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
22from setuptools .dist import Distribution
33import pip
44import os
4949 package_data ['cv2' ] = ['*.pyd' , '*.dll' ]
5050
5151package_data ['cv2' ] += ["LICENSE.txt" , "LICENSE-3RD-PARTY.txt" ]
52+ package_data ['' ] = ['*.xml' ]
5253
5354"""
5455
@@ -80,7 +81,7 @@ def __len__(self):
8081 license = 'MIT' ,
8182 description = 'Wrapper package for OpenCV python bindings.' ,
8283 long_description = long_description ,
83- packages = [ 'cv2' ] ,
84+ packages = find_packages () ,
8485 package_data = package_data ,
8586 maintainer = "Olli-Pekka Heinisuo" ,
8687 include_package_data = True ,
You can’t perform that action at this time.
0 commit comments