# Hacking NUMBA\_CACHE\_DIR and \_UserProvidedCacheLocator to package jit-cache in egg

**URL:** <https://numba.discourse.group/t/hacking-numba-cache-dir-and-userprovidedcachelocator-to-package-jit-cache-in-egg/895>\
**Category:** Support: How do I do ...?\
**Created:** [September 3, 2021, 3:09pm UTC](https://numba.discourse.group/t/hacking-numba-cache-dir-and-userprovidedcachelocator-to-package-jit-cache-in-egg/895 "2021-09-03T15:09:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nelson2005](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/nelson2005/32/47_2.png) [@nelson2005](https://numba.discourse.group/u/nelson2005)\
**Post date:** [October 22, 2021, 11:55pm UTC](https://numba.discourse.group/t/hacking-numba-cache-dir-and-userprovidedcachelocator-to-package-jit-cache-in-egg/895/4 "2021-10-22T23:55:28Z")

</div>

Okay, there’s a little more to the story. The egg zipfile format [doesn’t support](https://github.com/pypa/setuptools/issues/973) the st\_mtime python file timestamp granularity used by numba in the .nbi index files so in my setup.py I stored a file with a pickled dict of filename and reset the timestamps when I unpacked the egg. There’s more discussion about my egg-caching odyssey [here](https://numba.discourse.group/t/numba-portable-caching-logic/980)

---

_[View the full topic](https://numba.discourse.group/t/hacking-numba-cache-dir-and-userprovidedcachelocator-to-package-jit-cache-in-egg/895)._
