Skip to content

Commit a464c98

Browse files
committed
fix find_version bug and clean up README
1 parent c2d177e commit a464c98

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ If some dependency is not enabled in the pre-built wheels, you can also run the
134134

135135
Since OpenCV version 4.3.0, also source distributions are provided in PyPI. This means that if your system is not compatible with any of the wheels in PyPI, ``pip`` will attempt to build OpenCV from sources.
136136

137-
You can also force ``pip`` to build the wheels from the source distribution for example with:
137+
You can also force ``pip`` to build the wheels from the source distribution. Some examples:
138138

139-
``pip install --no-binary opencv-python opencv-python``
140-
``pip install --no-binary :all: opencv-python``
139+
- ``pip install --no-binary opencv-python opencv-python``
140+
- ``pip install --no-binary :all: opencv-python``
141141

142-
If you need contrib modules or headless version, just change the package name (step 4 in the previous section is not needed). However, any additional CMake flags can be provided via environment variables as described in step 3 of the manual build section. If none are provided, OpenCV's CMake scripts will attempt to find and enable any suitable dependencies and enable them. Headless distributions have hard coded CMake flags which disable all possible GUI dependencies.
142+
If you need contrib modules or headless version, just change the package name (step 4 in the previous section is not needed). However, any additional CMake flags can be provided via environment variables as described in step 3 of the manual build section. If none are provided, OpenCV's CMake scripts will attempt to find and enable any suitable dependencies. Headless distributions have hard coded CMake flags which disable all possible GUI dependencies.
143143

144144
Please note that build tools and ``numpy`` are required for the build to succeed. On slow systems such as Raspberry Pi the full build may take several hours. On a 8-core Ryzen 7 3700X the build takes about 6 minutes.
145145

find_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
if __name__ == "__main__":
66
contrib = sys.argv[1]
77
headless = sys.argv[2]
8-
ci_build = sys.argv[2]
8+
ci_build = sys.argv[3]
99

1010
opencv_version = ""
1111
# dig out the version from OpenCV sources

0 commit comments

Comments
 (0)