1 unstable release
0.1.0 | Mar 30, 2022 |
---|
#5 in #chmod
8KB
84 lines
运行环境
ubuntu 20.04 rust >= 1.55.0 python = 3.8
最终发布环境: https://pypi.org/manage/projects/
初始化
- 安装miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh
chmod +x Miniconda3-py38_4.10.3-Linux-x86_64.sh
./Miniconda3-py38_4.10.3-Linux-x86_64.sh
conda init bash
conda init zsh
conda create -n py38 python=3.8
conda activate py38
cargo install maturin
cargo build
scripts/dev-pymorx.sh
清理运行环境
# conda deactivate
conda env remove --name py38
debug环境配置
PYO3_PRINT_CONFIG=1 cargo .....
指定环境编译
PYO3_PYTHON=py39 cargo ....
Dependencies
~24–36MB
~603K SLoC