Alexander Smorkalov
2beacc07e8
Manage Python Limited API version externally.
2024-01-10 12:30:29 +03:00
Duong Dac
a9424868a1
Merge pull request #20370 from ddacw:stub-gen-next
...
Python typing stub generation #20370
Add stub generation to `gen2.py`, addressing #14590 .
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
- [x] The PR is proposed to proper branch
- [x] There is reference to original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2023-05-26 18:25:46 +03:00
Alexander Alekhin
d24befa0bc
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-12-11 15:18:57 +00:00
Andrey Senyaev
d6891c705e
Merge pull request #21219 from asenyaev:asen/remove_distutils
...
* Replaced distutils module to sysconfig
* Fixed getting a path to python lib
2021-12-08 18:51:34 +00:00
Maksim Shabunin
973e1acb67
Merge pull request #21182 from mshabunin:split-cv2cpp
...
Split cv2.cpp
* split cv2.cpp: util, numpy
* split cv2.cpp: convert
* split cv2.cpp: highgui, more utils
* split cv2.cpp: fix numpy import
2021-12-05 12:49:36 +00:00
Alexander Alekhin
a590682764
cmake: update installation of python extra submodules
...
- support Python standalone builds
- loader installs submodules unconditionally
2021-10-15 14:21:31 +00:00
Vadim Levin
3c89a28a06
Merge pull request #20611 from VadimLevin:dev/vlevin/pure-python-modules
...
* feat: OpenCV extension with pure Python modules
* feat: cv2 is now a Python package instead of extension module
Python package cv2 now can handle both Python and C extension modules
properly without additional "subfolders" like "_extra_py_code".
* feat: can call native function from its reimplementation in Python
2021-09-18 10:02:55 +03:00
Alexander Alekhin
6fbfc58602
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2021-08-21 17:25:18 +00:00
Alexander Alekhin
c08897cd10
cmake: handle empty CVPY_SUFFIX
2021-08-19 20:06:41 +00:00
Alexander Alekhin
c82e4596e4
cmake: fix installation of python extra code
2021-06-10 13:51:30 +03:00
Anatoliy Talamanov
c4df8989e9
Merge pull request #19982 from TolyaTalamanov:at/new-python-operation-api
...
G-API: New python operations API
* Reimplement test using decorators
* Custom python operation API
* Remove wip status
* python: support Python code in bindings (through loader only)
* cleanup, skip tests for Python 2.x (not supported)
* python 2.x can't skip unittest modules
* Clean up
* Clean up
* Fix segfault python3.9
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
2021-05-20 18:59:53 +00:00
Alexander Alekhin
4b47c7dbd2
cmake(python): handle PYTHON3_LIMITED_API
...
- python-3.x => python-3
- config-3.x.py => config-3.py
2020-03-18 23:10:06 +00:00
Alexander Alekhin
a45928045a
Merge pull request #16150 from alalek:cmake_avoid_deprecated_link_private
...
* cmake: avoid deprecated LINK_PRIVATE/LINK_PUBLIC
see CMP0023 (CMake 2.8.12+)
* cmake: fix 3rdparty list
- don't include OpenCV modules
2019-12-13 17:52:40 +03:00
Maksim Shabunin
10d61a2b44
Limited API support for Python3
2019-06-11 15:15:49 +03:00
Alexander Alekhin
f5ca9d3fe1
python: visibility
2019-06-07 07:23:15 +00:00
Alexander Alekhin
470dfba96c
python: update CMake install rules
2019-03-15 13:11:00 +03:00
Alexander Alekhin
bb8c19aad3
cmake: fix python install paths
2018-12-17 14:32:29 +03:00
Alexander Alekhin
ad35b79e3f
python: update install paths
...
- don't require "OPENCV_PYTHON{2,3}_INSTALL_PATH" if OPENCV_SKIP_PYTHON_LOADER=ON
- avoid unnecessary relative paths in generated config-X.Y.py
2018-11-24 13:55:46 +00:00
Alexander Alekhin
ce6acd3ecd
python: bindings loader package
...
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
2018-11-16 00:51:16 +00:00
Alexander Alekhin
aa6e296236
python: eliminate DeprecationWarning: SO -> EXT_SUFFIX
...
- https://python.readthedocs.io/en/stable/whatsnew/3.4.html
- The `sysconfig` key `SO` is deprecated, it has been replaced by `EXT_SUFFIX`
2018-10-25 04:23:45 +00:00
Alexander Alekhin
dd7f88bd68
python: support standalone Python bindings build
...
- requires OpenCV source directory
- requires OpenCV binary directory with built modules and 'python_bindings_generator' target
2018-06-07 15:16:39 +03:00
Alexander Alekhin
08941b7890
cmake: avoid amending of CMAKE_COMPILER_IS_[GNUCXX|CLANGCXX|CCACHE] vars
...
- Recommended compiler checks:
- GCC: CV_GCC
- Clang: CV_CLANG
- fixed problem with CMAKE_CXX_COMPILER_ID=Clang/AppleClang mess on MacOSX
Details: cmake --help-policy CMP0025
- do not declare Clang as GCC compiler
2018-03-27 16:16:59 +03:00
Alexander Alekhin
84887d3011
cmake: use -isystem for Python/numpy include directories
2018-02-09 17:10:02 +03:00
Alexander Alekhin
768f4cb7bc
python: 'sub-module' for binding sources and documentation meta information
2017-12-09 21:01:46 +00:00
Pavel Rojtberg
6fb9d42c3f
Hid symbols in static builds, added LTO flags, removed exports from ts
2017-12-07 10:26:48 +03:00
Alexander Alekhin
aa70199ce1
build: avoid exporting of unnecessary symbols from Python bindings
2017-11-15 13:21:35 +03:00
Alexander Alekhin
572a7bf6ce
python: add special targets gen_opencv_python2(3)
2017-09-06 08:23:04 +03:00
Alexander Alekhin
ea6fe71a50
python: eliminate -Wundef warning about NPY_INTERNAL_BUILD
...
numpy 1.13.0+
2017-08-22 11:56:55 +03:00
Alexander Alekhin
b6949c5088
cmake: CMP0022 NEW
2017-08-19 15:15:05 +00:00
Alexander Alekhin
6ea6e4bceb
binding: fix headers processing
2017-06-30 14:53:21 +03:00
Alexander Alekhin
006966e629
trace: initial support for code trace
2017-06-26 17:07:13 +03:00
Alexander Alekhin
edcbc15a90
cmake: python installation
...
Also fixes issue with empty PYTHON_PACKAGES_PATH (cross-compilation mode)
2016-11-10 17:53:53 +03:00
Alexander Alekhin
5da8d65371
eliminate compiler warnings
2016-10-08 02:19:43 +03:00
Vitaliy Lyudvichenko
ab8de8f506
Adding of user-defined type conversions for python bindings inside module directories
...
Adding of destructor and placement new constructors for classes wrapped with CV_EXPORTS_W_SIMPLE macro
2016-08-16 13:10:17 +03:00
Maksim Shabunin
63d8290491
Merge pull request #6779 from alalek:python_dynamic_lookup
2016-07-15 12:28:30 +00:00
Maksim Shabunin
f698bc1cc2
Fixes header filtering for python bindings generator
2016-07-13 19:49:38 +03:00
Alexander Alekhin
c0fe374490
cmake: python, allow dynamic symbols lookup from libpython.so
2016-07-07 14:23:35 +03:00
Alexander Alekhin
d2e5f90f32
cmake: fix cv2.lib conflict for python2/3 bindings (MSVS)
2016-02-26 17:08:07 +03:00
Maksim Shabunin
84f37d352f
HAL moved back to core
2015-12-17 12:33:23 +03:00
Alexander Alekhin
0db10a3052
fixes #5019 : python and java bindings become CMake modules (loadable plugins)
2015-12-14 16:20:18 +03:00
Alexander Alekhin
caaf60ba00
remove bindings generation for DetectionBasedTracker
2015-06-09 19:01:04 +03:00
Tim D. Smith
b9b743bbe3
Don't explicitly link Python on OS X
...
Explicitly linking to a Python framework on OS X prevents modules from
being built against one Python (i.e. system python) and imported from
another (i.e. Homebrew python); the interpreter segfaults if there's a
linkage to a foreign Python. Building the module with `-undefined
dynamic_lookup` instead of an explicit link allows the symbols to be
resolved at load time from a compatible python.
2015-03-23 23:36:46 -07:00
Maksim Shabunin
37c74e38f4
Python support
2015-03-02 18:13:00 +03:00
Maksim Shabunin
553020c448
Enabled STL usage within the library
2015-02-18 12:36:50 +03:00
Maksim Shabunin
a5a510da4b
Support for compound modules, support for contrib_world
2015-02-10 18:30:05 +03:00
Maksim Shabunin
6337fd0650
Support of bioinspired contrib module wrapping
...
- added java wrapper
- disabled python wrapper
2014-09-22 11:43:29 +04:00
Alexander Mordvintsev
c1032b6232
remove structured_edge_detection.hpp from blacklist
...
don't discard pure virtual methods in hdr_parser.py (was broken anyway)
2014-09-01 13:55:41 +04:00
Alexander Mordvintsev
c23d6b67ee
blacklisted 'tracking' due to some linking problem
2014-08-21 18:45:50 +04:00
Alexander Mordvintsev
74c77d826f
base class name resolution
...
fixed find_obj.py
2014-08-21 14:51:03 +04:00
Alexander Mordvintsev
40d0f853d6
removing modules from blacklist
2014-08-19 19:19:11 +04:00