| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
You need CMake and compilers etc. installed as per the normal build instructions. Before building with Emscripten, you also need to install Emscripten and activate it using the commands below (see https://emscripten.org/docs/getting_started/downloads.html for details).
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
# replace <version> with the desired EMSDK version.
# e.g. for Pyodide 0.26, you need EMSDK version 3.1.58
# the versions can be found in the Makefile.envs file in the Pyodide repo:
# https://github.com/pyodide/pyodide/blob/10b484cfe427e076c929a55dc35cfff01ea8d3bc/Makefile.envs
./emsdk install <version>
./emsdk activate <version>
source ./emsdk_env.shIf you want to build PyArrow for Pyodide, you need pyodide-build installed via pip, and to be running with the same version of Python that Pyodide is built for, along with the same versions of emsdk tools.
# install Pyodide build tools.
# e.g., for version 0.26 of Pyodide, pyodide-build 0.26 and later work
pip install "pyodide-build>=0.26"Then build with the ninja-release-emscripten CMake preset, like below:
emcmake cmake --preset "ninja-release-emscripten"
ninja installThis will install a built static library version of libarrow it into the Emscripten sysroot cache, meaning you can build things that depend on it and they will find libarrow.
e.g. if you want to build for Pyodide, run the commands above, and then go to arrow/python and run
pyodide buildIt should make a wheel targeting the currently enabled version of Pyodide in the dist subdirectory.
If you want to manually build for Emscripten, take a look at the CMakePresets.json file in the arrow/cpp directory for a list of things you will need to override. In particular you will need:
| Back | FazBrowse Home | New Git URL |