opencv : Use in
operator
This commit is contained in:
parent
ce902bf27a
commit
0080ffcf9f
1 changed files with 2 additions and 2 deletions
|
@ -96,12 +96,12 @@ def install(self, spec, prefix):
|
||||||
|
|
||||||
python_prefix = spec['python'].prefix
|
python_prefix = spec['python'].prefix
|
||||||
python_lib = python_prefix.lib
|
python_lib = python_prefix.lib
|
||||||
if spec.satisfies('^python@3:'):
|
if '^python@3:' in spec:
|
||||||
python = join_path(python_prefix.bin, 'python3')
|
python = join_path(python_prefix.bin, 'python3')
|
||||||
cmake_options.extend(['-DBUILD_opencv_python3=ON',
|
cmake_options.extend(['-DBUILD_opencv_python3=ON',
|
||||||
'-DPYTHON_EXECUTABLE=%s' % python,
|
'-DPYTHON_EXECUTABLE=%s' % python,
|
||||||
'-DPYTHON_LIBRARIES=%s' % python_lib])
|
'-DPYTHON_LIBRARIES=%s' % python_lib])
|
||||||
elif spec.satisfies('^python@2:3'):
|
elif '^python@2:3' in spec:
|
||||||
python = join_path(python_prefix.bin, 'python2')
|
python = join_path(python_prefix.bin, 'python2')
|
||||||
cmake_options.extend(['-DBUILD_opencv_python2=ON',
|
cmake_options.extend(['-DBUILD_opencv_python2=ON',
|
||||||
'-DPYTHON_EXECUTABLE=%s' % python,
|
'-DPYTHON_EXECUTABLE=%s' % python,
|
||||||
|
|
Loading…
Reference in a new issue