I'm packaging up a minimal Ubuntu distro to fit in a 4GB disk image, for use on a VPS. This image is a (C++) webapp which (among other things) writes and runs simple Python scripts to handle conversions between csv and xls files, with csvkit
and XlsxWriter
doing the heavy lifting. My entire Python knowledge is unfortunately limited to writing and running these scripts.
Problem: I install pip
in the image to handle the download and install of csvkit
and XlsxWriter
. This creates a huge amount of cruft, including what seems to be a C++ development environment, just to install what I imagine (presumably incorrectly) is simply Python source code. I can't really afford this in a 4GB distribution.
Is there a lightweight alternative to using pip
to do this? Can I just copy over a handful of files from the dev machine, for example? I suppose one alternative is simply to uninstall pip
after use, but I'd rather keep the disk image clean if possible (if nothing else, it will compress better).