Skip to content

python: bindings loader package - #12977

Merged
alalek merged 1 commit into
opencv:3.4from
alalek:python_package
Nov 16, 2018
Merged

alalek merged 1 commit into
opencv:3.4from
alalek:python_package

Conversation

@alalek

@alalek alalek commented Oct 28, 2018 •

Copy link
Copy Markdown
Member

Configures and loads OpenCV bindings extension including 3rdparty dependencies

Based on running Python specify:

  • configure PYTHONPATH (via "sys.path")
  • configure PATH / LD_LIBRARY_PATH (changes doesn't work in the same process)

TODO:

  • RPATH support from standalone Python builds (via CMAKE_INSTALL_RPATH ?)
test_modules=python2,python3

Configures and loads OpenCV bindings extension including 3rdparty dependencies

Based on running Python specify:
- configure PYTHON_PATH (via "sys.path")
- configure LD_LIBRARY_PATH / PATH
@alalek alalek mentioned this pull request Nov 16, 2018
@alalek

alalek commented Nov 16, 2018

Copy link
Copy Markdown
Member Author

👍

@alalek
alalek merged commit b321851 into opencv:3.4 Nov 16, 2018
@alalek alalek mentioned this pull request Nov 17, 2018
@hmaarrfk

Copy link
Copy Markdown
Contributor

@alalek it seems that this is a new file that changes how we are supposed to import and/or install opencv for use with python.

Do you have some docs that explain the new install flags/macros?

xref: conda-forge/opencv-feedstock#132

@alalek

alalek commented Nov 18, 2018

Copy link
Copy Markdown
Member Author

@hmaarrfk Yes, default behavior has been changed.

Old behavior can restored via these CMake variables:

  • OPENCV_SKIP_PYTHON_LOADER=ON
  • OPENCV_PYTHON3_INSTALL_PATH=...site/dist-packages location...

@hmaarrfk

Copy link
Copy Markdown
Contributor

Thanks that did the trick!

SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants