tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Latest python and ncurses changes



On Tue, May 07, 2024 at 07:15:34PM +0000, John Klos wrote:
> math/nlopt:
> 
> [ 85%] Built target nlopt
> [ 86%] Building CXX object src/swig/CMakeFiles/nlopt_python.dir/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx.o
> /usr/pkgsrc/math/nlopt/work/nlopt-2.7.1/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:173:11: fatal error: Python.h: No such file or directory
>   173 | # include <Python.h>
>       |           ^~~~~~~~~~
> compilation terminated.

Builds fine for me in a sandbox. However, the package doesn't depend on Python:

-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
CMake Warning (dev) at CMakeLists.txt:300 (find_package):
  Ignoring EXACT since no version is requested.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:300 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
CMake Warning (dev) at cmake/FindNumPy.cmake:45 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:301 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)

So either build in an environment without Python or find a way to
disable the Python detection.
 Thomas


Home | Main Index | Thread Index | Old Index