Skip to content

Commit 253e052

Browse files
glitchassassinskvark
authored andcommitted
License file fix for opencv#34 (opencv#41)
* Moved license files to package_data * Moved license files * Copying licenses to cv2 in Travis step * Added license copy to Windows build script
1 parent b4ef320 commit 253e052

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ before_install:
212212
- source multibuild/common_utils.sh
213213
- source multibuild/travis_steps.sh
214214
- python find_version.py
215+
- cp LICENSE*.txt cv2/
215216
- before_install
216217

217218
install:

appveyor/build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cd
2424
if %PYTHON_VERSION% GEQ 3 xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\lib\python3\Release\*.pyd" .\cv2 /I
2525
if %PYTHON_VERSION% LSS 3 xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\lib\RELEASE\*.pyd" .\cv2 /I
2626
xcopy "%APPVEYOR_BUILD_FOLDER%\opencv\%BUILD_DIR%\bin\Release\*.dll" .\cv2 /I
27-
27+
xcopy "LICENSE*.txt" .\cv2 /I
2828
xcopy "%APPVEYOR_BUILD_FOLDER%\appveyor\setup.cfg" .\ /I
2929

3030
dir

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
else:
4949
package_data['cv2'] = ['*.pyd', '*.dll']
5050

51+
package_data['cv2'] += ["LICENSE.txt", "LICENSE-3RD-PARTY.txt"]
5152

5253
class BinaryDistribution(Distribution):
5354
""" Forces BinaryDistribution. """
@@ -68,7 +69,6 @@ def is_pure(self):
6869
package_data=package_data,
6970
maintainer="Olli-Pekka Heinisuo",
7071
include_package_data=True,
71-
data_files=[("", ["LICENSE.txt", "LICENSE-3RD-PARTY.txt"])],
7272
install_requires="numpy>=%s" % numpy_version,
7373
classifiers=[
7474
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)