Apache Arrow in Mojo
This repo is very much a work in progress. The goal is to provide a way to use Apache Arrow in Mojo. This is a very early version and is not yet ready for use.
If you have all the prerequisites, you should be able to just run
make setup
Prerequisites
- Mojo
- Python 3.11 (recommended via pyenv, but not required)
uv
for python package management. Needed formake setup
to work but optional. You can also usepip install -r requirements.txt
instead.
If you would like to manually create your python virtual env, use this command
python3 -m venv .venv
The makefile contains some helpful commands:
make setup
- Install python dependencies & setup .venvmake test
- Run testsmake fmt
- Run formattermake build
- Build the packagemake clean
- Clean up build artifacts
However, for make
commands to work
MODULAR_HOME
and PATH
must be configured in ~/.zprofile
or ~/.bash_profile
in addition to ~/.zshrc
or ~/.bashrc
.
export MODULAR_HOME="$HOME/.modular"
# Pick one of the following, don't use both
# Option A: Nightly Mojo
export PATH="$HOME/.modular/pkg/packages.modular.com_nightly_mojo/bin:$PATH"
# Option B: Stable Mojo
export PATH="$HOME/.modular/pkg/packages.modular.com_mojo/bin:$PATH"