cmake-python-distributions icon indicating copy to clipboard operation
cmake-python-distributions copied to clipboard

Induce rehash after pip install cmake

Open NAThompson opened this issue 3 years ago • 2 comments

Into a clean virtualenv, I can:

pip install cmake

Immediately after, I run:

$ cmake ../ -G Ninja
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  CMake 3.20.2 or higher is required.  You are running version 3.5.2


-- Configuring incomplete, errors occurred!

The workaround is simple: Run a rehash immediately after pip install cmake. However, I wonder if this can be achieved automatically via some pip hook.

(BTW: Amazing and useful package. Thanks so much!)

NAThompson avatar Oct 12 '22 16:10 NAThompson

Nope, wheels are not allowed to run custom code on install. Partially security issue. The previous format (eggs) did.

henryiii avatar Oct 30 '22 03:10 henryiii

Does this happen if you use pipx? I'm not using a shell where rehashes are needed.

henryiii avatar Oct 30 '22 03:10 henryiii