git clone https://github.com/pynvme/pynvme
cd pynvme
git checkout tags/2.3.2
Or you can clone the code from the mirror repository:
git clone https://gitee.com/pynvme/pynvme
2.4 Prerequisites
Then, we need to fetch all required dependencies.
fedora-like
sudo dnf install -y make redhat-rpm-config python3-devel python3-pip
ubuntu-like
sudo apt install -y python3-setuptools python3-dev python3-pip
get SPDK and its submodules
git submodule update --init --recursive
install SPDK required packages
sudo ./spdk/scripts/pkgdep.sh
install python packages required by pynvme
sudo python3 -m pip install -r requirements.txt
use the according pynvme-modified SPDK code
cd spdk
git checkout pynvme_2.3
configure SPDK
./configure --without-isal;
compile SPDK
cd …
make spdk
compile pynvme
make
setup SPDK runtime environment
make setup