cmake_example icon indicating copy to clipboard operation
cmake_example copied to clipboard

Build requirements not working

Open sasq64 opened this issue 3 years ago • 2 comments

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.

sasq64 avatar Nov 24 '22 15:11 sasq64

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.

henryiii avatar Nov 24 '22 16:11 henryiii

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

Do you know of a work-around?

sasq64 avatar Nov 24 '22 16:11 sasq64