File tree Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22set +e
33echo " === Loading config.sh === "
44
5- cp travis/setup.cfg .
6-
75if [ -n " $IS_OSX " ]; then
86 echo " > OSX environment "
97 function build_wheel {
Original file line number Diff line number Diff line change 5050
5151package_data ['cv2' ] += ["LICENSE.txt" , "LICENSE-3RD-PARTY.txt" ]
5252
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+
5358class BinaryDistribution (Distribution ):
54- """ Forces BinaryDistribution. """
5559 def has_ext_modules (self ):
5660 return True
5761
5862 def is_pure (self ):
5963 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+
6074
6175setup(name=package_name,
6276 version=opencv_version,
6377 url='https://github.com/skvark/opencv-python',
6478 license='MIT',
6579 description='Wrapper package for OpenCV python bindings.',
6680 long_description=long_description,
67- distclass = BinaryDistribution ,
6881 packages=['cv2'],
6982 package_data=package_data,
7083 maintainer="Olli-Pekka Heinisuo",
7184 include_package_data=True,
85+ ext_modules=EmptyListWithLength(),
7286 install_requires="numpy>=%s" % numpy_version,
7387 classifiers=[
7488 'Development Status :: 5 - Production/Stable',
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments