#conda #sh #init #repo #bash #通用图像配准库--python #接口

pymorx

通用图像配准库--python 接口

1 unstable release

0.1.0 Mar 30, 2022

#24 in #conda

MIT/Apache

8KB
84 lines

运行环境

ubuntu 20.04 rust >= 1.55.0 python = 3.8

最终发布环境: https://pypi.org/manage/projects/

初始化

  1. 安装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–37MB
~624K SLoC