nanobox-io / nanobox-engine-python

Engine for running Python apps on Nanobox
https://nanobox.io
MIT License
12 stars 13 forks source link

Refactor/change cache dir location #34

Open tylerflint opened 7 years ago

tylerflint commented 7 years ago

So it turns out this engine hasn't been properly vendoring the pip modules. Even though we were specifying the "src" dir as a cache_dir, the pip install wasn't actually storing the modules in there. After some research, it was confirmed that the pip install was installing into global package space. This means that every nanobox build would completely wipe the installed modules and re-install them. Additionally, it means the "src" cache_dir was pointless.

This change adds proper vendoring for python, into the .nanobox/pip cache_dir.

benspaulding commented 7 years ago

I think #43 will handle this.