Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10626

Build Fails when python3-numpy not present (Fedora 31)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.20/02
    • Fix Version/s: master, 6.20/06
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      Fedora 31
      Python 3.7.6
      CMake 3.16.4
      gcc 9.2.1

      Description

      A recent build of ROOT 6.20.02 on a fresh Fedora 31 system led to some confusion. Error messages were thrown at the end of the build process that ${PYTHON_INCLUDE_DIRS} was set to NOTFOUND.

      After some searching through the CMake files, I found in cmake/modules/SearchRootCoreDeps.cmake, that find_pacakge(Python ...) was called twice. The second call was to check if numpy was available. This inspired me to install numpy, as I would want it on the system anyhow, after that installation the build was able to correctly find ${PYTHON_INCLUDE_DIRS}.

        Attachments

          Activity

            People

            Assignee:
            oshadura Oksana Shadura
            Reporter:
            613f2a276cdeb745102f Karl Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: