Page MenuHomeSoftware Heritage

pyutils.sh
No OneTemporary

pyutils.sh

#!/bin/bash
setup_pip () {
echo Using pip from $(which pip)
if [[ -d /src ]] ; then
tmpdir=`mktemp -d`
pushd /src
for srcrepo in swh-* ; do
if [ -w $srcrepo ]
then
# Install package in editable mode if source directory is writable
pip install -e $srcrepo
else
# Source directories might not be writeable, but building them writes
# in-tree; so we're copying them to a location guaranteed to be writeable.
rsync -a --chmod=+w $srcrepo $tmpdir/ --exclude "*/__pycache__/" --exclude "*/.tox/" --exclude "*/.hypothesis/"
pip install $tmpdir/$srcrepo
fi
done
popd
rm -rf $tmpdir
fi
echo Installed Python packages:
pip list
}

File Metadata

Mime Type
text/x-shellscript
Expires
Thu, Jul 3, 10:15 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241481

Event Timeline