Skip to content

Developers Notes

Iosif Spartalis edited this page Apr 25, 2021 · 9 revisions

Packaging

Windows

Prerequisites

  • python3 latest version (not Microsoft Store version)
  • include python executable in PATH system
  • NSIS - Nullsoft Scriptable Installer for making a self-extract installer
  1. Clone or unzip the code in a Windows machine folder.
  2. Create a virtual enviroment
python -m venv <name of virutalenv>
  1. activate the virtualenv
  2. install wheel package, the requirements.txt (remove the pytest and weasyprint from it) and pyinstaller
pip install wheel
pip install -r requirements.txt
pip install pyinstaller
  1. update paths in added_files list .spec file
  2. run pyinstaller
pyinstaller qctoolgui_windows.spec
  1. Zip the dist\MipDataQualityControlTool folder
  2. use the NSIS to create a self-extract installer

MacOS

  1. install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install Python, cairo, Pango and GDK-PixBuf using Homebrew:
brew install python3 cairo pango gdk-pixbuf libffi

Ubuntu

the instructions in dh-virtualenv cookbook

https://sourceforge.net/projects/vcxsrv/

Clone this wiki locally