Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: allow use of system pybind11 & install fatropy #17

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

nim65s
Copy link
Contributor

@nim65s nim65s commented Aug 8, 2024

Hi,

Here is a little packaging update for python users.

@wdecre wdecre merged commit 13d5860 into meco-group:main Aug 14, 2024
1 check passed
@maximvochten
Copy link
Collaborator

maximvochten commented Sep 12, 2024

@nim65s

Thanks for your contribution. For me however the installation fails now on this line:

 find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)

It results in the following error:

  CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
    Could NOT find Python (missing: Development.Module) (found version
    "2.7.18")

If I explicitly enforce Python3 using

 find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)

it still results in an error:

  CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
    Could NOT find Python3 (missing: Development.Module) (found version
    "3.8.10")

Python3-dev is installed with

  sudo apt-get install python3-dev

I think there is a confusion between different versions of Python.
Any idea how to solve this?

@nim65s
Copy link
Contributor Author

nim65s commented Sep 12, 2024

Thanks for the ping, but I think we can continue in #20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants