Skip to content

Specifying Python version when running cmake #1893

@ngleb

Description

@ngleb

Hi!

I'm trying to build 3.2.0 with Python support. All dependencies are installed, however I have issue with adding Python support.

When running cmake -DUSE_PYTHON=yes ., it does detect Python, but only the latest version installed which is 3.8.2, but the main version I have is python 3.7 and Boost is also built only with python 3.7.

I tired passing -DPYTHON_EXECUTABLE=/usr/bin/python3.7 but that doesn't work:
ledger-1.log

If I remove Python 3.8, then cmake -DUSE_PYTHON=yes . finishes without errors:
ledger-2.log

I'm on Gentoo, the following deps are installed:

  • Python 3.6, Python 3.7 (this is the main version that is used by the system and is supported by Boost), Python 3.8,
  • GCC 9.3.0
  • Cmake 3.16.5
  • ledger 3.2.0

Is there another option that could help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildBuild problems

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions