Skip to content
Chris Meyer edited this page Mar 26, 2022 · 7 revisions

Welcome to the nionswift-tool wiki!

Installing on Linux

Tested on Ubuntu 20.04. 2022-03-26. CM.

sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt-get update
sudo apt-get install curl python3.9 python3.9-dev python3.9-venv libqt5widgets5 -y
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.9 get-pip.py
/usr/bin/python3.9 -m venv venv-nionswift
source ./venv-nionswift/bin/activate
python3.9 -m pip install nionswift nionswift-usim nionswift-tool
nionswift

Building Manually on Linux

Tested on Ubuntu 16.04 and Ubuntu 20.04. 2022-03-26. CM.

# from scratch. run the sudo commands individually.
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt-get update
sudo apt-get install git qt5-default python3.9 python3.9-dev python3.9-venv -y
sudo apt-get install build-essential -y
# build the Python environment
/usr/bin/python3.9 -m venv venv-nionswift-build
source ./venv-nionswift-build/bin/activate
python -m pip install --upgrade pip
pip install cmake numpy wheel packaging
git clone https://github.com/nion-software/nionswift-tool.git
cd nionswift-tool
cd launcher
cmake CMakeLists.txt
cmake --build . --config Release
rm -rf linux; mkdir -p linux; mv build linux/x64
cd ..
python setup.py bdist_wheel
cd ..
pip install nionswift nionswift-tool/dist/nionswift_tool-0.4.13-cp37.cp38.cp39-abi3-manylinux1_x86_64.whl
# run the application
nionswift
Clone this wiki locally