Freelance nerd, writer. Plasma Physics PhD.

Python Repackaging

This article packs up the standard conda installations into tarballs, so they can be added to other environments.

PYVER=`python -V 2>&1 | awk '{print $2}'`

tar -zcf /results/nj-python-${PYVER}.tar.gz /opt/conda
du -h /results/nj-python-${PYVER}.tar.gz
nj-python-3.6.7.tar.gz
PYVER=`python -V 2>&1 | awk '{print $2}'`

tar -zcf /results/nj-python-${PYVER}.tar.gz /opt/conda
du -h /results/nj-python-${PYVER}.tar.gz
nj-python-2.7.15.tar.gz