10000 I haven't clearly coded python enough lately :D · lineCode/opencv-python@b0ef671 · GitHub
[go: up one dir, main page]

Skip to content

Commit b0ef671

Browse files
committed
I haven't clearly coded python enough lately :D
1 parent 05a9709 commit b0ef671

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def main():
4242

4343
package_name = "opencv-python"
4444

45-
if build_contrib and !build_headless:
45+
if build_contrib and not build_headless:
4646
package_name = "opencv-contrib-python"
4747

4848
if build_contrib and build_headless
4949
package_name = "opencv-contrib-python-headless"
5050

51-
if build_headless and !build_contrib:
51+
if build_headless and not build_contrib:
5252
package_name = "opencv-python-headless"
5353

5454
long_description = io.open('README_CONTRIB.rst' if build_contrib else 'README.rst', encoding="utf-8").read()
@@ -104,7 +104,7 @@ def main():
104104
] + (["-DOPENCV_EXTRA_MODULES_PATH=" + os.path.abspath("opencv_contrib/modules")] if build_contrib else [])
105105

106106
# OS-specific components
107-
if (sys.platform == 'darwin' or sys.platform.startswith('linux')) and !build_headless:
107+
if (sys.platform == 'darwin' or sys.platform.startswith('linux')) and not build_headless:
108108
cmake_args.append("-DWITH_QT=4")
109109

110110
if build_headless:

0 commit comments

Comments
 (0)
0