[Bug 294328] math/py-numpy: migrate consumers from numpy1

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294328

--- Comment #36 from Vladimir Druzenko <[email protected]> ---
(In reply to Max Brazhnikov from comment #8)
> graphics/blender - the failure is unrelated to numpy update.
Related:

-- numpy found at '/usr/local/lib/python3.11/site-packages'
CMake Warning at build_files/cmake/macros.cmake:1210 (message):
  Python package 'numpy' include dir path could not be found in:

  '/usr/local/lib/python3.11/site-packages/numpy/core/include',
  '/usr/local/lib/python3/site-packages/numpy/core/include',
  '/usr/local/lib/python3.11/dist-packages/numpy/core/include',
  '/usr/local/lib/python3/dist-packages/numpy/core/include',
  '/usr/local/lib/python3.11/vendor-packages/numpy/core/include',
  '/usr/local/lib/python3/vendor-packages/numpy/core/include',

  The 'WITH_PYTHON_NUMPY' option will be disabled.

  The build will be usable, only add-ons that depend on this package won't be
  functional.
Call Stack (most recent call first):
  CMakeLists.txt:2598 (find_python_package)

With numpy 2.x correct path to includes is:
/usr/local/lib/python3.11/site-packages/numpy/_core/include

Patch (testing in progress) graphics/blender/files/patch-CMakeLists.txt:
--- CMakeLists.txt.orig 2025-10-09 16:52:29 UTC
+++ CMakeLists.txt
@@ -2593,7 +2593,7 @@ if(WITH_PYTHON)
     if(("${PYTHON_NUMPY_PATH}" STREQUAL "") OR (${PYTHON_NUMPY_PATH} MATCHES
NOTFOUND))
       set(_numpy_include "_core/include")
       if(PYTHON_VERSION VERSION_LESS "3.13")
-        set(_numpy_include "core/include")
+#        set(_numpy_include "core/include")
       endif()
       find_python_package(numpy "${_numpy_include}")
       unset(_numpy_include)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.