Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
450b9651
Commit
450b9651
authored
Feb 20, 2020
by
cyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #16500
parent
4b0d3316
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
config.py.in
modules/python/package/template/config.py.in
+2
-0
python_loader.cmake
modules/python/python_loader.cmake
+7
-1
No files found.
modules/python/package/template/config.py.in
View file @
450b9651
import os
BINARIES_PATHS = [
@CMAKE_PYTHON_BINARIES_PATH@
] + BINARIES_PATHS
modules/python/python_loader.cmake
View file @
450b9651
...
...
@@ -58,7 +58,13 @@ if(NOT OpenCV_FOUND) # Ignore "standalone" builds of Python bindings
else
()
list
(
APPEND CMAKE_PYTHON_BINARIES_INSTALL_PATH
"os.path.join(
${
CMAKE_PYTHON_EXTENSION_INSTALL_PATH_BASE
}
, '
${
OPENCV_LIB_INSTALL_PATH
}
')"
)
endif
()
string
(
REPLACE
";"
",
\n
"
CMAKE_PYTHON_BINARIES_PATH
"
${
CMAKE_PYTHON_BINARIES_INSTALL_PATH
}
"
)
set
(
CMAKE_PYTHON_BINARIES_PATH
"
${
CMAKE_PYTHON_BINARIES_INSTALL_PATH
}
"
)
if
(
WIN32 AND HAVE_CUDA
)
if
(
DEFINED CUDA_TOOLKIT_ROOT_DIR
)
list
(
APPEND CMAKE_PYTHON_BINARIES_PATH
"os.path.join(os.getenv('CUDA_PATH', '
${
CUDA_TOOLKIT_ROOT_DIR
}
'), 'bin')"
)
endif
()
endif
()
string
(
REPLACE
";"
",
\n
"
CMAKE_PYTHON_BINARIES_PATH
"
${
CMAKE_PYTHON_BINARIES_PATH
}
"
)
configure_file
(
"
${
PYTHON_SOURCE_DIR
}
/package/template/config.py.in"
"
${
__python_loader_install_tmp_path
}
/cv2/config.py"
@ONLY
)
install
(
FILES
"
${
__python_loader_install_tmp_path
}
/cv2/config.py"
DESTINATION
"
${
OPENCV_PYTHON_INSTALL_PATH
}
/cv2/"
COMPONENT python
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment