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
uv
for python package management. Needed for make setup
to work but optional. You can also use pip 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 artifactsHowever, 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"