This is a learn-by-doing project to reacquaint myself with the C/C++, geophysics, and binding with Python.
- Just
- CMake
- C++ compiler (e.g., g++, clang++)
- Python > 3.12
- Python development headers
- On Debian/Ubuntu:
sudo apt-get install python3-dev
- On Fedora:
sudo dnf install python3-devel
- On macOS:
brew install python
- On Debian/Ubuntu:
- uv for python project management
-
Clone the repo
-
Navigate to the project directory
-
Create a virtual environment (optional but recommended)
uv venv source .venv/bin/activate
-
Build and install the project
uv sync
-
Run the Python tests
With the virtual environment activated, libseis should be installed and available.
pytest
-
Run the C++ tests
cd build ctest