File tree 4 files changed +16
-14
lines changed
4 files changed +16
-14
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
set +e
3
3
echo " === Loading config.sh === "
4
4
5
- cp travis/setup.cfg .
6
-
7
5
if [ -n " $IS_OSX " ]; then
8
6
echo " > OSX environment "
9
7
function build_wheel {
Original file line number Diff line number Diff line change 50
50
51
51
package_data ['cv2' ] += ["LICENSE.txt" , "LICENSE-3RD-PARTY.txt" ]
52
52
53
+ This is my old hack to force binary distribution .
54
+
55
+ However , it doesn 't work properly because the binaries
56
+ are placed into purelib instead of platlib .
57
+
53
58
class BinaryDistribution (Distribution ):
54
- """ Forces BinaryDistribution. """
55
59
def has_ext_modules (self ):
56
60
return True
57
61
58
62
def is_pure (self ):
59
63
return False
64
+ """
65
+
66
+ # This creates a list which is empty but returns a length of 1.
67
+ # Should make the wheel a binary distribution and platlib compliant.
68
+
69
+
70
+ class EmptyListWithLength(list):
71
+ def __len__(self):
72
+ return 1
73
+
60
74
61
75
setup(name=package_name,
62
76
version=opencv_version,
63
77
url='https://github.com/skvark/opencv-python',
64
78
license='MIT',
65
79
description='Wrapper package for OpenCV python bindings.',
66
80
long_description=long_description,
67
- distclass = BinaryDistribution ,
68
81
packages=['cv2'],
69
82
package_data=package_data,
70
83
maintainer="Olli-Pekka Heinisuo",
71
84
include_package_data=True,
85
+ ext_modules=EmptyListWithLength(),
72
86
install_requires="numpy>=%s" % numpy_version,
73
87
classifiers=[
74
88
'Development Status :: 5 - Production/Stable',
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments