开发指南
如何构建 Apache Fory™
请从 https://github.com/apache/fory 检出源代码树。
构建 Apache Fory™ Java
cd java
mvn clean compile -DskipTests
环境要求
- java 1.8+
- maven 3.6.3+
构建 Apache Fory™ Python
cd python
# 首先卸载 numpy,以便在安装 pyarrow 时自动安装正确的 numpy 版本。
# 对于 Python 版本低于 3.13,目前不支持 numpy 2。
pip uninstall -y numpy
# 为 Python < 3.13 安装必要的环境。
pip install pyarrow Cython wheel pytest
# pip install pyarrow Cython wheel pytest
pip install -v -e .
环境要求
- python 3.6+
构建 Apache Fory™ C++
构建 fory 行格式:
bazel build //cpp/fory/row:fory_row_format
构建 fory 行格式编码器:
bazel build //cpp/fory/encoder:fory_encoder