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

pip install/uninstall numba compiled cache conflict #164

Open
timcera opened this issue May 17, 2024 · 1 comment
Open

pip install/uninstall numba compiled cache conflict #164

timcera opened this issue May 17, 2024 · 1 comment

Comments

@timcera
Copy link
Contributor

timcera commented May 17, 2024

In testing "pip install ." and "pip uninstall" ran into this issue about the numba compiled cache not being deleted by pip when uninstalling.

Discussion in Numba community: numba/numba#9312

Perhaps adjust cache directory using NUMBA_CACHE_DIR environment variable? https://numba.readthedocs.io/en/stable/reference/envvars.html#envvar-NUMBA_CACHE_DIR

Discussion in Pytest community: pytest-dev/pytest#10781

Discussions in PIP community: pypa/pip#11835

pypa/packaging.python.org#1423

@austinorr
Copy link
Contributor

This seems like we don’t need to do anything, all libraries using numba + jit + cachedir have this issue, so we should just ship our code as is. Eventually numba will have a solution for modifying the RECORD correctly in accordance with the spec, and everything will be fixed for everyone at once.

If we try to do something clever with changing the cache dir, how will we delete it when the user uninstalls with pip? I don’t think we can hook into that, and without it, there’s no way to invalidate our cache.

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