lasp/scripts/build_ubuntu.sh

23 lines
582 B
Bash
Raw Normal View History

2023-07-14 08:12:42 +00:00
#!/bin/sh
# Build LASP on Arch Linux, assuming we start in a clean docker container.
# After that, test stuff.
# Assumptions
# - CWD is root of lasp repository
# - Nothing is installed
# Stop on first error
set -e
# Update cache
2023-07-14 08:12:42 +00:00
apt update
# Install requirements
apt install -y git python3.10-virtualenv libopenblas-dev python3-pip libfftw3-dev libusb-1.0-0-dev libpulse-dev python3-build
# Build
2023-07-14 08:12:42 +00:00
git submodule update --init --recursive
python3 -m venv .venv
source .venv/bin/activate
pip install build pytest
python3 -m build
pip install dist/lasp-*linux_x86_64.whl
# Test
pytest