pybind / cmake_example

Example pybind11 module built with a CMake-based build system
Other
613 stars 218 forks source link

Build requirements not working #104

Open sasq64 opened 1 year ago

sasq64 commented 1 year ago

The build requirements seems to be downloaded by the install process, but not actually found when building;

git clone https://github.com/pybind/cmake_example.git cd cmake_example pip3 install . ...

      Traceback (most recent call last):
        File "/private/var/folders/.../overlay/bin/cmake", line 5, in <module>
          from cmake import cmake
      ModuleNotFoundError: No module named 'cmake'

If you manually install using pip3 install cmake it works after that.

henryiii commented 1 year ago

What system are you on? It’s actually getting CMake (/private/var/folders/.../overlay/bin/cmake) but not finding the package it came from, which is weird.

homebrew python 3.10 and 3.11 is currently broken when building not in a virtualenv, will be fixed next Pip update.

sasq64 commented 1 year ago

Homebrew python 3.10.6, so I guess that's it.

Do you know of a work-around?