Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sergiomb2
Copy link
Contributor

so we don't use numpy.distutils to get includes dirs of python-numpy

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the 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

@asmorkalov
Copy link
Contributor

There are a lot of embedded platform users that cannot update Python or NumPy. The current approach was deprecated in NumPy 1.23. I propose to add condition and use old command for old Numpy versions.

@opencv-alalek
Copy link
Contributor

Embedded boards usually processed through CMAKE_CROSSCOMPILING branch above.
Also there is workaround possible to pass PYTHON3_NUMPY_INCLUDE_DIRS to cmake.

I don't see issues with Ubuntu 16.04 builders.
numpy.get_include() is here for the last 17 years: https://github.com/numpy/numpy/blame/4a709238b22ece2d01de5e429ad11ae0f2611f7b/numpy/lib/_utils_impl.py#L74

Copy link
Contributor

@opencv-alalek opencv-alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sergiomb2 Please rebase source branch on the latest 4.x upstream branch. This is necessary for enabling the latest GitHub Actions checks.

so we don't use numpy.distutils to get includes dirs of python-numpy
@sergiomb2
Copy link
Contributor Author

@sergiomb2 Please rebase source branch on the latest 4.x upstream branch. This is necessary for enabling the latest GitHub Actions checks.

done !

@asmorkalov asmorkalov added this to the 4.9.0 milestone Oct 3, 2023
@asmorkalov asmorkalov merged commit 3d0e2cc into opencv:4.x Oct 3, 2023
@asmorkalov asmorkalov mentioned this pull request Oct 17, 2023
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.

3 participants