Skip to content

How to Build

LuQQiu edited this page Sep 15, 2024 · 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/lancedb/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
source venv/bin/activate

pip install maturin

# Build debug build
maturin develop --extras tests

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