joemarshall opened a new pull request, #37696:
URL: https://github.com/apache/arrow/pull/37696

   This PR adds a cmake build preset for emscripten / pyodide, and updates the 
setup for pyarrow so that it is possible to build a webassembly version of 
libarrow, and a version of pyarrow which works on pyodide.
   
   Things that changed:
   1) Cmake preset ninja-release-emscripten-python
   2) Platform/toolchain override for cmake on emscripten, to set various build 
parameters
   3) Some fixes to cmake files - e.g. pyarrow can build with static libarrow 
now, and third party dependencies pass the toolchain file through.
   4) pyarrow knows about ARROW_ENABLE_THREADING and doesn't use threads if 
they are not enabled in libarrow.
   5) Support in pyarrow for an override file (`arrow_build_overrides.cfg`), 
for overriding environment variables in setup.py, which is useful in 
cross-compile environments such as pyodide build where you can't necessarily 
just pass things in via environment variables because the cross-compiler 
creates an entirely isolated build environment (to avoid problems where tools 
or settings installed for the build platform are run when we want to only use 
tools for the target platform)
   
   An example of `arrow_build_overrides.cfg` looks like this:
   
   ```
   [environment]
   PYARROW_WITH_PARQUET=1
   PYARROW_WITH_DATASET=1
   PYARROW_WITH_PARQUET_ENCRYPTION=0
   ARROW_HOME=/home/pszjm2/arrow/dist
   PYARROW_BUILD_VERBOSE=1
   PYARROW_PARALLEL=4
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to