Skip to content

How to Build

QianZhu edited this page Aug 15, 2023 · 8 revisions

Lance Development Resources

To build Lance

On Ubuntu 22.04

sudo apt install protobuf-compiler libssl-dev build-essential pkg-config gfortran

On Mac

brew install protobuf
git checkout https://github.com/eto-ai/lance.git

# Build rust package
cd rust
cargo build

# Run test
cargo test

# Run benchmarks
cargo bench

To build the Pylance package

cd python
python3 -m venv venv
. /venv/bin/activate

pip install maturin

# Build debug build
maturin develop --extras tests

# Run pytest
pytest python/tests/
Clone this wiki locally