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

Induce rehash after pip install cmake #295

Open
NAThompson opened this issue Oct 12, 2022 · 2 comments
Open

Induce rehash after pip install cmake #295

NAThompson opened this issue Oct 12, 2022 · 2 comments

Comments

@NAThompson
Copy link

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!)

@henryiii
Copy link
Contributor

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

@henryiii
Copy link
Contributor

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

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

No branches or pull requests

2 participants