Spaces:
Sleeping
Sleeping
File size: 451 Bytes
287a0bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#!/bin/bash
# Verify PIP tarball
tarball=$(readlink -f $1)
if [ -f "$tarball" ]; then
echo "Testing PIP package from tarball: $tarball"
else
echo "Could not find PIP package: $tarball"
fi
# Create temporary project dir
dir=$(mktemp -d)
echo "Building python project dir at $dir ..."
cd $dir
python3 -m venv venv
source venv/bin/activate
pip install $tarball
python -c "import chromadb; api = chromadb.Client(); print(api.heartbeat())"
|