Skip to content

PyInstaller installation notes

Andrew Reslan edited this page Mar 18, 2016 · 3 revisions

PyInstaller Installation Notes

PyInstaller is used to generate a single executable from a root python script and all of it's dependencies.

For Sync Gateway PyInstaller is used to build the sgcollect_info for each deployed platform, this allows us to ship a single .exe rather than multiple python scripts and on Windows a python.dll.

For each build platform PyInstaller must be installed on the Jenkins build slave so that it can be used by the build scripts.

Linux

Pre Requisites

libc-bin

Ubuntu: sudo apt-get install libc-bin

binutils

Ubuntu: sudo apt-get install binutils

python 2.7

Ubuntu: sudo apt-get install python2.7

python-dev

Ubuntu: sudo apt-get install python-dev

python-pip

Ubuntu: sudo apt-get install python-pip

PyInstaller

pip install PyInstaller

Mac OSX (El Capitan)

PyInstaller

pip install PyInstaller

Windows

Download the appropriate Python 2.7 installer from https://www.python.org/downloads. e.g. Windows x86-64 MSI installer.

Install Python 2.7 onto Windows host.

Add ROOT folder of Python install directory and /Scripts to Windows PATH Environment variable

Run pip install pyinstaller

Clone this wiki locally