mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
21 lines
389 B
Bash
Executable File
21 lines
389 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
cd -- "$(dirname -- "$0")"
|
|
|
|
# Uninstall if it already was installed
|
|
python3 -m pip uninstall -y photonlibpy
|
|
|
|
# Build wheel
|
|
python3 -m pip install wheel
|
|
python3 setup.py bdist_wheel
|
|
|
|
# Install whatever wheel was made
|
|
for f in dist/*.whl; do
|
|
echo "installing $f"
|
|
python3 -m pip install --no-cache-dir "$f"
|
|
done
|
|
|
|
# Run the test suite
|
|
pytest -rP
|